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

@@ -28,6 +28,7 @@ pub trait RoomStoreConsumerInterface {
fn id(&self) -> &RoomId;
fn is_direct(&self) -> Option<bool>;
fn name(&self) -> Option<String>;
fn topic(&self) -> Option<String>;
#[allow(dead_code)]
async fn avatar(&self) -> Option<Avatar>;
@@ -38,6 +39,7 @@ pub trait RoomStoreConsumerInterface {
pub trait RoomStoreProviderInterface {
fn on_new_name(&self, name: Option<String>);
fn on_new_avatar(&self, avatar: Option<Avatar>);
fn on_new_topic(&self, topic: Option<String>);
fn on_new_member(&self, member: RoomMember);
fn on_invitation(&self, invitation: Invitation);
}