Page MenuHomePhabricator

D10481.id35055.diff
No OneTemporary

D10481.id35055.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
@@ -390,7 +390,6 @@
const preparePromise: Promise<$ReadOnlyArray<PreparePushResult>> =
(async () => {
const targetedNotifications = await prepareWebNotification(
- userID,
{
notifTexts,
threadID: threadInfo.id,
@@ -1241,7 +1240,6 @@
platformDetails: tPlatformDetails,
});
async function prepareWebNotification(
- userID: string,
inputData: WebNotifInputData,
devices: $ReadOnlyArray<NotificationTargetDevice>,
): Promise<$ReadOnlyArray<TargetedWebNotification>> {
@@ -1260,11 +1258,9 @@
threadID,
};
- const isStaffOrDev = isStaff(userID) || isDev;
- const shouldBeEncrypted =
- hasMinCodeVersion(convertedData.platformDetails, {
- web: 43,
- }) && isStaffOrDev;
+ const shouldBeEncrypted = hasMinCodeVersion(convertedData.platformDetails, {
+ web: 43,
+ });
if (!shouldBeEncrypted) {
return devices.map(({ deviceToken }) => ({ deviceToken, notification }));
diff --git a/keyserver/src/session/cookies.js b/keyserver/src/session/cookies.js
--- a/keyserver/src/session/cookies.js
+++ b/keyserver/src/session/cookies.js
@@ -753,7 +753,6 @@
const isStaffOrDev = isStaff(viewer.userID) || isDev;
const isWebSupportingE2ENotifs =
- isStaffOrDev &&
viewer.platformDetails?.platform === 'web' &&
hasMinCodeVersion(viewer.platformDetails, { web: 43 });

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 4, 11:37 AM (9 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2612360
Default Alt Text
D10481.id35055.diff (1 KB)

Event Timeline