Don't send null message to self

This commit is contained in:
AsamK 2021-05-11 22:02:29 +02:00
parent fa44f8b6a8
commit 2727487902

View 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); account.getSessionStore().archiveSessions(recipientId);
return sendNullMessage(recipientId); if (!recipientId.equals(getSelfRecipientId())) {
sendNullMessage(recipientId);
}
} }
public String getContactName(String number) throws InvalidNumberException { public String getContactName(String number) throws InvalidNumberException {