Merge pull request #3718 from matrix-org/travis/wrap-encryption

Wrap the await call for unknown device lookups
This commit is contained in:
J. Ryan Stinnett 2019-12-11 11:32:43 +00:00 committed by GitHub
commit 2a91a6d08c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);