From 8c295a3f905114815ed97d4cb9eb98e41f03c39d Mon Sep 17 00:00:00 2001 From: Juergen Kurzmann Date: Sat, 3 Aug 2019 21:49:02 +0200 Subject: [PATCH] Update SignalAccount storage on unregister - save registered false state in the SignalAccount storage on unregister action --- src/main/java/org/asamk/signal/manager/Manager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/asamk/signal/manager/Manager.java b/src/main/java/org/asamk/signal/manager/Manager.java index 575dde67..8672684a 100644 --- a/src/main/java/org/asamk/signal/manager/Manager.java +++ b/src/main/java/org/asamk/signal/manager/Manager.java @@ -209,6 +209,9 @@ public class Manager implements Signal { // 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); + account.save(); } public String getDeviceLinkUri() throws TimeoutException, IOException {