base: Handle room avatar updates

master
Damir Jelić 2021-01-15 09:57:59 +01:00
parent 508bf3b23d
commit 40c53f09ba
1 changed files with 4 additions and 0 deletions

View File

@ -187,6 +187,10 @@ impl BaseRoomInfo {
self.encryption = Some(encryption.clone());
true
}
AnyStateEventContent::RoomAvatar(a) => {
self.avatar_url = a.url.clone();
true
}
AnyStateEventContent::RoomName(n) => {
self.name = n.name().map(|n| n.to_string());
true