Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/push/send.js
Show First 20 Lines • Show All 626 Lines • ▼ Show 20 Lines | ): Promise<apn.Notification> { | ||||
notification.payload.id = uniqueID; | notification.payload.id = uniqueID; | ||||
notification.payload.threadID = threadID; | notification.payload.threadID = threadID; | ||||
// 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 ( | if ( | ||||
platformDetails.codeVersion && | platformDetails.codeVersion && | ||||
platformDetails.codeVersion > 1000 && | platformDetails.codeVersion > 198 && | ||||
platformDetails.codeVersion % 2 === 0 | platformDetails.codeVersion % 2 === 0 | ||||
) { | ) { | ||||
notification.mutableContent = true; | notification.mutableContent = true; | ||||
} | } | ||||
if (collapseKey) { | if (collapseKey) { | ||||
notification.collapseId = collapseKey; | notification.collapseId = collapseKey; | ||||
} | } | ||||
const messageInfos = JSON.stringify(newRawMessageInfos); | const messageInfos = JSON.stringify(newRawMessageInfos); | ||||
▲ Show 20 Lines • Show All 403 Lines • Show Last 20 Lines |