Close account if user is not registered

This commit is contained in:
AsamK 2021-12-05 15:32:28 +01:00
parent 32c2fae2f7
commit a5013dd08d

View file

@ -60,6 +60,7 @@ public interface Manager extends Closeable {
var account = SignalAccount.load(pathConfig.dataPath(), number, true, trustNewIdentity);
if (!account.isRegistered()) {
account.close();
throw new NotRegisteredException();
}