diff --git a/js/models/messages.js b/js/models/messages.js index 1345f895a..d762d95c3 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -1283,10 +1283,8 @@ (dataMessage.attachments && dataMessage.attachments.length)) ); const shouldNotifyPushServer = - hasBodyOrAttachments && - isSessionOrClosedMessage && - sentMessage.ttl === - window.libsession.Constants.TTL_DEFAULT.REGULAR_MESSAGE; + hasBodyOrAttachments && isSessionOrClosedMessage; + if (shouldNotifyPushServer) { // notify the push notification server if needed if (!wrappedEnvelope) {