mirror of https://github.com/vector-im/riot-web
				
				
				
			Wrap the await call for unknown device lookups
Otherwise we're awaiting the result of `map()`, which isn't accurate.pull/21833/head
							parent
							
								
									c1b1f98201
								
							
						
					
					
						commit
						db91465c56
					
				| 
						 | 
				
			
			@ -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