Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3357905
D4231.id13587.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4231.id13587.diff
View Options
diff --git a/keyserver/src/push/rescind.js b/keyserver/src/push/rescind.js
--- a/keyserver/src/push/rescind.js
+++ b/keyserver/src/push/rescind.js
@@ -59,6 +59,7 @@
const notification = prepareIOSNotification(
delivery.iosID,
row.unread_count,
+ threadID,
);
deliveryPromises[id] = apnPush({
notification,
@@ -86,6 +87,7 @@
const notification = prepareIOSNotification(
iosID,
row.unread_count,
+ threadID,
codeVersion,
);
deliveryPromises[id] = apnPush({
@@ -166,6 +168,7 @@
function prepareIOSNotification(
iosID: string,
unreadCount: number,
+ threadID: string,
codeVersion: ?number,
): apn.Notification {
const notification = new apn.Notification();
@@ -177,6 +180,8 @@
? {
backgroundNotifType: 'CLEAR',
notificationId: iosID,
+ setUnreadStatus: true,
+ threadID,
}
: {
managedAps: {
@@ -209,6 +214,7 @@
badge: unreadCount.toString(),
rescind: 'true',
rescindID: notifID,
+ setUnreadStatus: 'true',
threadID,
},
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 2:26 AM (21 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577782
Default Alt Text
D4231.id13587.diff (1 KB)
Attached To
Mode
D4231: Introduce threadID to iOS rescind notification to enable easy SQLite update. Introduce setUnreadStatus flag to control whether to update SQLite in response to rescind
Attached
Detach File
Event Timeline
Log In to Comment