Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/push/rescind.js
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | ): apn.Notification { | ||||
notification.topic = getAPNsNotificationTopic({ | notification.topic = getAPNsNotificationTopic({ | ||||
platform: 'ios', | platform: 'ios', | ||||
codeVersion: codeVersion ?? undefined, | codeVersion: codeVersion ?? undefined, | ||||
}); | }); | ||||
// It was agreed to temporarily make even releases staff-only. This way | // It was agreed to temporarily make even releases staff-only. This way | ||||
// we will be able to prevent shipping NSE functionality to public iOS | // we will be able to prevent shipping NSE functionality to public iOS | ||||
// users until it is thoroughly tested among staff members. | // users until it is thoroughly tested among staff members. | ||||
if (codeVersion && codeVersion > 1000 && codeVersion % 2 === 0) { | if (codeVersion && codeVersion > 198 && codeVersion % 2 === 0) { | ||||
notification.mutableContent = true; | notification.mutableContent = true; | ||||
notification.pushType = 'alert'; | notification.pushType = 'alert'; | ||||
notification.badge = unreadCount; | notification.badge = unreadCount; | ||||
} else { | } else { | ||||
notification.priority = 5; | notification.priority = 5; | ||||
notification.contentAvailable = true; | notification.contentAvailable = true; | ||||
notification.pushType = 'background'; | notification.pushType = 'background'; | ||||
} | } | ||||
Show All 34 Lines |