From 1a405fdf43ec4881d74601e759d2940707f61d6d Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 25 Feb 2021 13:06:45 +1100 Subject: [PATCH] do not notify PN server when we sync a message to our device --- js/models/messages.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/models/messages.js b/js/models/messages.js index bb61ab18d..c6ac62c14 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -1061,8 +1061,7 @@ (dataMessage.body || (dataMessage.attachments && dataMessage.attachments.length)) ); - const shouldNotifyPushServer = - hasBodyOrAttachments && isSessionOrClosedMessage; + const shouldNotifyPushServer = hasBodyOrAttachments && !isOurDevice; if (shouldNotifyPushServer) { // notify the push notification server if needed