mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Merge pull request #3718 from matrix-org/travis/wrap-encryption
Wrap the await call for unknown device lookups
This commit is contained in:
commit
2a91a6d08c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user