🚧 Add relations between store::Room and store::Area

This commit is contained in:
2024-05-16 22:31:48 +02:00
parent d77c2a9d12
commit cbe32c250e
5 changed files with 53 additions and 21 deletions

View File

@@ -208,6 +208,7 @@ impl RoomMessagingConsumerInterface for Room {
}
}
#[async_trait(?Send)]
impl RoomStoreConsumerInterface for Room {
fn id(&self) -> &RoomId {
&self.id
@@ -220,4 +221,8 @@ impl RoomStoreConsumerInterface for Room {
fn name(&self) -> Option<String> {
self.name.borrow().clone()
}
fn spaces(&self) -> &Vec<SpaceId> {
&self.spaces
}
}