mirror of https://github.com/vector-im/riot-web
Merge pull request #3718 from matrix-org/travis/wrap-encryption
Wrap the await call for unknown device lookupspull/21833/head
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…
Reference in New Issue