Page MenuHomePhabricator

D4113.diff
No OneTemporary

D4113.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
@@ -467,7 +467,7 @@
collapseKey: ?string,
badgeOnly: boolean,
unreadCount: number,
- codeVersion: ?number,
+ codeVersion: number,
): apn.Notification {
const uniqueID = uuidv4();
const notification = new apn.Notification();
@@ -493,6 +493,9 @@
notification.payload.id = uniqueID;
notification.payload.threadID = threadInfo.id;
notification.payload.messageInfos = JSON.stringify(newRawMessageInfos);
+ if (codeVersion > 137) {
+ notification.mutableContent = true;
+ }
if (collapseKey) {
notification.collapseId = collapseKey;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 10:59 PM (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2581249
Default Alt Text
D4113.diff (707 B)

Event Timeline