Skip to content

Commit

Permalink
Revert "Replace NEXT_CODE_VERSION with 233"
Browse files Browse the repository at this point in the history
This reverts commit 7880b8e.
  • Loading branch information
marcinwasowicz committed Jul 25, 2023
1 parent 1b51382 commit 6e3bba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keyserver/src/push/rescind.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -226,7 +227,7 @@ async function conditionallyEncryptNotification<T>(
notification: T,
) => Promise<$ReadOnlyArray<T>>,
): 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,
Expand Down

0 comments on commit 6e3bba4

Please sign in to comment.