Skip to content

Commit

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

0 comments on commit 7880b8e

Please sign in to comment.