Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3313008
D13522.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13522.diff
View Options
diff --git a/lib/push/send-utils.js b/lib/push/send-utils.js
--- a/lib/push/send-utils.js
+++ b/lib/push/send-utils.js
@@ -1247,8 +1247,8 @@
devices: $ReadOnlyArray<DeviceSessionCreationRequest>,
) => Promise<void>,
+auxUserInfos: AuxUserInfos,
- +rescindData?: { threadID: string },
- +badgeUpdateData?: { threadID: string },
+ +rescindData?: { +threadID: string },
+ +badgeUpdateData?: { +threadID: string },
};
async function prepareOwnDevicesPushNotifs(
@@ -1269,7 +1269,7 @@
return null;
}
- const filteredownDevicesPushInfos =
+ const filteredOwnDevicesPushInfos =
filterDevicesSupportingDMNotifs(ownDevicesPushInfo);
const { senderUserID, senderDeviceDescriptor } = senderInfo;
@@ -1277,14 +1277,14 @@
const userDevices: {
+[userID: string]: $ReadOnlyArray<string>,
} = {
- [senderUserID]: filteredownDevicesPushInfos.devices.map(
+ [senderUserID]: filteredOwnDevicesPushInfos.devices.map(
device => device.cryptoID,
),
};
await createOlmSessionWithDevices(userDevices, olmSessionCreator);
const devicesByPlatform = getDevicesByPlatform(
- filteredownDevicesPushInfos.devices,
+ filteredOwnDevicesPushInfos.devices,
);
if (rescindData) {
diff --git a/lib/types/notif-types.js b/lib/types/notif-types.js
--- a/lib/types/notif-types.js
+++ b/lib/types/notif-types.js
@@ -36,9 +36,9 @@
}>,
}
| {
- +rescindData: { threadID: string },
+ +rescindData: { +threadID: string },
}
- | { +badgeUpdateData: { threadID: string } };
+ | { +badgeUpdateData: { +threadID: string } };
export type SenderDeviceDescriptor =
| { +keyserverID: string }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 11:22 AM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2544998
Default Alt Text
D13522.diff (1 KB)
Attached To
Mode
D13522: [lib] Make NotificationsCreationData read-only
Attached
Detach File
Event Timeline
Log In to Comment