From 1a09ba0b35552e1fce5365291d951cc8a21176bb Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 2 Jul 2020 11:28:04 +1000 Subject: [PATCH] remove identifier from message to disable syncing of them on events callback --- js/models/conversations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/models/conversations.js b/js/models/conversations.js index c592d8489..3709b809d 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -1852,8 +1852,8 @@ } const updateParams = { + // if we do set an identifier here, be sure to not sync the message two times in msg.handleMessageSentSuccess() timestamp: Date.now(), - identifier: messageId, groupId: this.id, name: this.get('name'), avatar: this.get('avatar'), @@ -1926,7 +1926,7 @@ const quitGroup = { timestamp: Date.now(), groupId: this.id, - identifier: id, + // if we do set an identifier here, be sure to not sync it a second time in handleMessageSentSuccess() }; const quitGroupMessage = new libsession.Messages.Outgoing.ClosedGroupLeaveMessage( quitGroup