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
Sat, Dec 28, 11:05 AM (7 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2726078
Default Alt Text
D4113.diff (707 B)

Event Timeline