diff --git a/keyserver/src/push/send.js b/keyserver/src/push/send.js --- a/keyserver/src/push/send.js +++ b/keyserver/src/push/send.js @@ -23,6 +23,7 @@ rawThreadInfoFromServerThreadInfo, threadInfoFromRawThreadInfo, } from 'lib/shared/thread-utils.js'; +import { FUTURE_CODE_VERSION } from 'lib/shared/version-utils.js'; import type { Platform, PlatformDetails } from 'lib/types/device-types.js'; import { messageTypes } from 'lib/types/message-types-enum.js'; import { @@ -786,7 +787,10 @@ ); const shouldBeEncrypted = - isTextNotification && !collapseKey && codeVersion && codeVersion > 222; + isTextNotification && + !collapseKey && + codeVersion && + codeVersion > FUTURE_CODE_VERSION; const notifID = collapseKey ? collapseKey : dbID; const { merged, ...rest } = notifTexts;