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, ) => Promise, +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, } = { - [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 }