3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 10:42:52 +01:00
This commit is contained in:
Shivaram Lingamneni 2020-03-25 14:07:43 -04:00
parent f4e9c79e36
commit c238f07543

View File

@ -1117,7 +1117,7 @@ func (am *AccountManager) Unregister(account string, erase bool) error {
if erase {
tx.Delete(unregisteredKey)
} else {
if _, err := tx.Get(accountKey); err == nil {
if _, err := tx.Get(verifiedKey); err == nil {
tx.Set(unregisteredKey, "1", nil)
}
}