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)) (dataMessage.attachments && dataMessage.attachments.length))
); );
const shouldNotifyPushServer = const shouldNotifyPushServer =
hasBodyOrAttachments && hasBodyOrAttachments && isSessionOrClosedMessage;
isSessionOrClosedMessage &&
sentMessage.ttl ===
window.libsession.Constants.TTL_DEFAULT.REGULAR_MESSAGE;
if (shouldNotifyPushServer) { if (shouldNotifyPushServer) {
// notify the push notification server if needed // notify the push notification server if needed
if (!wrappedEnvelope) { if (!wrappedEnvelope) {

Loading…
Cancel
Save