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