From 6e3bba424a3ca481505ef2f5a870d924248d7a56 Mon Sep 17 00:00:00 2001 From: marcinwasowicz Date: Tue, 25 Jul 2023 18:35:48 +0200 Subject: [PATCH] Revert "Replace NEXT_CODE_VERSION with 233" This reverts commit 7880b8e6b128cea6b11a0f1773861bc937001f2e. --- keyserver/src/push/rescind.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keyserver/src/push/rescind.js b/keyserver/src/push/rescind.js index 6f62f3907c..c13b264c53 100644 --- a/keyserver/src/push/rescind.js +++ b/keyserver/src/push/rescind.js @@ -3,6 +3,7 @@ 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'; @@ -226,7 +227,7 @@ async function conditionallyEncryptNotification( notification: T, ) => Promise<$ReadOnlyArray>, ): Promise<$ReadOnlyArray<{ +deviceToken: string, +notification: T }>> { - const shouldBeEncrypted = codeVersion && codeVersion >= 233; + const shouldBeEncrypted = codeVersion && codeVersion > NEXT_CODE_VERSION; if (!shouldBeEncrypted) { return devices.map(({ deviceToken }) => ({ notification,