Ask multiple servers for keys when not known or sending server failed

This commit is contained in:
Devin Ragotzy 2021-03-01 08:23:28 -05:00
parent f3253f2033
commit c9f4ff5cf8
2 changed files with 53 additions and 10 deletions

View file

@ -1605,7 +1605,7 @@ impl Rooms {
})
}
/// Returns an iterator over all joined members of a room.
/// Returns an iterator of all servers participating in this room.
pub fn room_servers(&self, room_id: &RoomId) -> impl Iterator<Item = Result<Box<ServerName>>> {
let mut prefix = room_id.as_bytes().to_vec();
prefix.push(0xff);