Add topic to the UI store Room

This commit is contained in:
2024-06-27 08:25:11 +02:00
parent 73c5b70ba8
commit d5d996eec3
3 changed files with 15 additions and 6 deletions

View File

@@ -123,11 +123,6 @@ impl Room {
self.name.borrow().clone()
}
#[allow(dead_code)]
pub fn topic(&self) -> &Option<String> {
&self.topic
}
#[allow(dead_code)]
pub fn set_topic(&mut self, topic: Option<String>) {
self.topic = topic;
@@ -308,6 +303,10 @@ impl RoomStoreConsumerInterface for Room {
self.name.borrow().clone()
}
fn topic(&self) -> Option<String> {
self.topic.clone()
}
async fn avatar(&self) -> Option<Avatar> {
self.get_avatar().await
}