diff --git a/keyserver/src/push/rescind.js b/keyserver/src/push/rescind.js index 92ebdd9df3..c1597eb5b7 100644 --- a/keyserver/src/push/rescind.js +++ b/keyserver/src/push/rescind.js @@ -3,7 +3,6 @@ import apn from '@parse/node-apn'; import invariant from 'invariant'; -import { NEXT_CODE_VERSION } from 'lib/shared/version-utils.js'; import { threadSubscriptions } from 'lib/types/subscription-types.js'; import { threadPermissions } from 'lib/types/thread-permission-types.js'; import { promiseAll } from 'lib/utils/promises.js'; @@ -227,7 +226,7 @@ async function conditionallyEncryptNotification( notification: T, ) => Promise<$ReadOnlyArray>, ): Promise<$ReadOnlyArray<{ +deviceToken: string, +notification: T }>> { - const shouldBeEncrypted = codeVersion && codeVersion > NEXT_CODE_VERSION; + const shouldBeEncrypted = codeVersion && codeVersion >= 233; if (!shouldBeEncrypted) { return devices.map(({ deviceToken }) => ({ notification,