Page MenuHomePhorge

D6893.1768674974.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D6893.1768674974.diff

diff --git a/keyserver/src/push/send.js b/keyserver/src/push/send.js
--- a/keyserver/src/push/send.js
+++ b/keyserver/src/push/send.js
@@ -237,6 +237,36 @@
deliveryPromises.push(deliveryPromise);
}
}
+ const macosVersionsToTokens = byPlatform.get('macos');
+ if (macosVersionsToTokens) {
+ for (const [codeVersion, deviceTokens] of macosVersionsToTokens) {
+ const shimmedNewRawMessageInfos = shimUnsupportedRawMessageInfos(
+ newRawMessageInfos,
+ { platform: 'macos', codeVersion },
+ );
+ const deliveryPromise = (async () => {
+ const notification = await prepareAPNsNotification(
+ allMessageInfos,
+ shimmedNewRawMessageInfos,
+ threadInfo,
+ notifInfo.collapseKey,
+ badgeOnly,
+ unreadCounts[userID],
+ { platform: 'macos', codeVersion },
+ );
+ return await sendAPNsNotification(
+ 'macos',
+ notification,
+ [...deviceTokens],
+ {
+ ...notificationInfo,
+ codeVersion,
+ },
+ );
+ })();
+ deliveryPromises.push(deliveryPromise);
+ }
+ }
for (const newMessageInfo of remainingNewMessageInfos) {
const newDBID = dbIDs.shift();
@@ -513,7 +543,7 @@
threadInfo,
getENSNames,
);
- if (!badgeOnly) {
+ if (!badgeOnly && platformDetails.platform !== 'macos') {
notification.body = merged;
notification.sound = 'default';
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 17, 6:36 PM (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5948553
Default Alt Text
D6893.1768674974.diff (1 KB)

Event Timeline