do not notify PN server when we sync a message to our device

pull/1515/head
Audric Ackermann 4 years ago
parent 3f59ce1692
commit 1a405fdf43
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1061,8 +1061,7 @@
(dataMessage.body || (dataMessage.body ||
(dataMessage.attachments && dataMessage.attachments.length)) (dataMessage.attachments && dataMessage.attachments.length))
); );
const shouldNotifyPushServer = const shouldNotifyPushServer = hasBodyOrAttachments && !isOurDevice;
hasBodyOrAttachments && isSessionOrClosedMessage;
if (shouldNotifyPushServer) { if (shouldNotifyPushServer) {
// notify the push notification server if needed // notify the push notification server if needed

Loading…
Cancel
Save