Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33278358
D6893.1768674974.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6893.1768674974.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6893: [keyserver] Send macos notifications
Attached
Detach File
Event Timeline
Log In to Comment