mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue