Page MenuHomePhabricator

D8247.id27859.diff
No OneTemporary

D8247.id27859.diff

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;

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 6:35 PM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2535213
Default Alt Text
D8247.id27859.diff (823 B)

Event Timeline