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 @@ -311,7 +311,6 @@ const preparePromise: Promise<$ReadOnlyArray> = (async () => { const targetedNotifications = await prepareAPNsNotification( - userID, { notifTexts, newRawMessageInfos: shimmedNewRawMessageInfos, @@ -430,7 +429,6 @@ const preparePromise: Promise<$ReadOnlyArray> = (async () => { const targetedNotifications = await prepareAPNsNotification( - userID, { notifTexts, newRawMessageInfos: shimmedNewRawMessageInfos, @@ -903,7 +901,6 @@ platformDetails: tPlatformDetails, }); async function prepareAPNsNotification( - userID: string, inputData: APNsNotifInputData, devices: $ReadOnlyArray, ): Promise<$ReadOnlyArray> { @@ -939,9 +936,7 @@ (isNonCollapsibleTextNotification && canDecryptNonCollapsibleTextIOSNotifs)); - const isStaffOrDev = isStaff(userID) || isDev; const canDecryptMacOSNotifs = - isStaffOrDev && platformDetails.platform === 'macos' && hasMinCodeVersion(platformDetails, { web: 47, @@ -1764,13 +1759,10 @@ notification.badge = unreadCount; notification.pushType = 'alert'; const preparePromise: Promise = (async () => { - const isStaffOrDev = isStaff(userID) || isDev; - const shouldBeEncrypted = - isStaffOrDev && - hasMinCodeVersion(viewer.platformDetails, { - web: 47, - majorDesktop: 9, - }); + const shouldBeEncrypted = hasMinCodeVersion(viewer.platformDetails, { + web: 47, + majorDesktop: 9, + }); let targetedNotifications: $ReadOnlyArray; if (shouldBeEncrypted) { const notificationsArray = await prepareEncryptedAPNsNotifications( diff --git a/keyserver/src/session/cookies.js b/keyserver/src/session/cookies.js --- a/keyserver/src/session/cookies.js +++ b/keyserver/src/session/cookies.js @@ -757,7 +757,6 @@ hasMinCodeVersion(viewer.platformDetails, { web: 43 }); const isMacOSSupportingE2ENotifs = - isStaffOrDev && viewer.platformDetails?.platform === 'macos' && hasMinCodeVersion(viewer.platformDetails, { web: 43, majorDesktop: 9 });