message: await room.getEncryptionTargetMembers in cryptodevices
diff: @@ -43,11 +43,11 @@ export function markAllDevicesKnown(matrixClient, devices) {
  * @return {Promise} A promise which resolves to a map userId->deviceId->{@link
  * module:crypto~DeviceInfo|DeviceInfo}.
  */
  -export function getUnknownDevicesForRoom(matrixClient, room) {
  - const roomMembers = room.getEncryptionTargetMembers().map((m) => {
  +export async function getUnknownDevicesForRoom(matrixClient, room) {
  + const roomMembers = await room.getEncryptionTargetMembers().map((m) => {
  return m.userId;
  });
  - return matrixClient.downloadKeys(roomMembers, false).then((devices) => {
  + const devices = await matrixClient.downloadKeys(roomMembers, false);
  const unknownDevices = {};
  // This is all devices in this room, so find the unknown ones.
  Object.keys(devices).forEach((userId) => {
  @@ -63,7 +63,6 @@ export function getUnknownDevicesForRoom(matrixClient, room) {
  });
  });
  return unknownDevices;
  - });
  }
  function focusComposer() {
  