base: Handle room avatar updates

This commit is contained in:
Damir Jelić 2021-01-15 09:57:59 +01:00
parent 508bf3b23d
commit 40c53f09ba

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