]> nmode's Git Repositories - signal-cli/commitdiff
Don't send null message to self
authorAsamK <asamk@gmx.de>
Tue, 11 May 2021 20:02:29 +0000 (22:02 +0200)
committerAsamK <asamk@gmx.de>
Tue, 11 May 2021 20:02:36 +0000 (22:02 +0200)
lib/src/main/java/org/asamk/signal/manager/Manager.java

index a78a19c159fa22255a71f92c1972ffda25d40368..c619acbc7864e121d377c6d5b5f9a726e3482d72 100644 (file)
@@ -1104,9 +1104,11 @@ public class Manager implements Closeable {
         }
     }
 
-    SendMessageResult renewSession(RecipientId recipientId) throws IOException {
+    void renewSession(RecipientId recipientId) throws IOException {
         account.getSessionStore().archiveSessions(recipientId);
-        return sendNullMessage(recipientId);
+        if (!recipientId.equals(getSelfRecipientId())) {
+            sendNullMessage(recipientId);
+        }
     }
 
     public String getContactName(String number) throws InvalidNumberException {