mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-01 21:34:34 +01:00
Close account if user is not registered
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user