mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
fix #908
This commit is contained in:
parent
f4e9c79e36
commit
c238f07543
@ -1117,7 +1117,7 @@ func (am *AccountManager) Unregister(account string, erase bool) error {
|
|||||||
if erase {
|
if erase {
|
||||||
tx.Delete(unregisteredKey)
|
tx.Delete(unregisteredKey)
|
||||||
} else {
|
} else {
|
||||||
if _, err := tx.Get(accountKey); err == nil {
|
if _, err := tx.Get(verifiedKey); err == nil {
|
||||||
tx.Set(unregisteredKey, "1", nil)
|
tx.Set(unregisteredKey, "1", nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user