You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Wrap the await call for unknown device lookups
Otherwise we're awaiting the result of `map()`, which isn't accurate.
This commit is contained in:
@@ -44,7 +44,7 @@ export function markAllDevicesKnown(matrixClient, devices) {
|
||||
* module:crypto~DeviceInfo|DeviceInfo}.
|
||||
*/
|
||||
export async function getUnknownDevicesForRoom(matrixClient, room) {
|
||||
const roomMembers = await room.getEncryptionTargetMembers().map((m) => {
|
||||
const roomMembers = (await room.getEncryptionTargetMembers()).map((m) => {
|
||||
return m.userId;
|
||||
});
|
||||
const devices = await matrixClient.downloadKeys(roomMembers, false);
|
||||
|
||||
Reference in New Issue
Block a user