]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/Manager.java
Add --delete-account argument to completely delete an account
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / Manager.java
index e39394800700eb6dd8758d499f67bba10c6a6fa4..7f0c48dc232b2ebc9e598e3517876f5acc76cb22 100644 (file)
@@ -406,6 +406,11 @@ public class Manager implements Closeable {
         // If this is the master device, other users can't send messages to this number anymore.
         // If this is a linked device, other users can still send messages, but this device doesn't receive them anymore.
         accountManager.setGcmId(Optional.absent());
+
+        account.setRegistered(false);
+    }
+
+    public void deleteAccount() throws IOException {
         accountManager.deleteAccount();
 
         account.setRegistered(false);