Skip to content

Commit

Permalink
Enable encrypted rescinds for codeVersions starting with 233
Browse files Browse the repository at this point in the history
Tried this previously. Led to some weird bugs, but they don't seem to be reproing anymore.
  • Loading branch information
Ashoat committed Aug 1, 2023
1 parent c451a81 commit 9f0d655
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 9f0d655

Please sign in to comment.