drop the check for ttl in shouldSendNotify

pull/1349/head
Audric Ackermann 5 years ago
parent 4505bed61b
commit 7011fa3efc
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -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) {

Loading…
Cancel
Save