♻️ Use of Store interfaces
This commit is contained in:
@@ -207,3 +207,17 @@ impl RoomMessagingConsumerInterface for Room {
|
||||
trace!("Room::on_new_name({:?})", name);
|
||||
}
|
||||
}
|
||||
|
||||
impl RoomStoreConsumerInterface for Room {
|
||||
fn id(&self) -> &RoomId {
|
||||
&self.id
|
||||
}
|
||||
|
||||
fn is_direct(&self) -> Option<bool> {
|
||||
self.is_direct
|
||||
}
|
||||
|
||||
fn name(&self) -> Option<String> {
|
||||
self.name.borrow().clone()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user