base: Store the room topic with the room summary.
parent
c13d04ae18
commit
64fff933af
|
@ -155,6 +155,7 @@ impl Room {
|
|||
name: None,
|
||||
canonical_alias: None,
|
||||
avatar_url: None,
|
||||
topic: None,
|
||||
})),
|
||||
}
|
||||
}
|
||||
|
@ -326,6 +327,7 @@ pub struct InnerSummary {
|
|||
name: Option<String>,
|
||||
canonical_alias: Option<RoomAliasId>,
|
||||
avatar_url: Option<String>,
|
||||
topic: Option<String>,
|
||||
|
||||
summary: SomeSummary,
|
||||
members_synced: bool,
|
||||
|
@ -379,6 +381,10 @@ impl InnerSummary {
|
|||
self.canonical_alias = a.content.alias.clone();
|
||||
true
|
||||
}
|
||||
AnySyncStateEvent::RoomTopic(t) => {
|
||||
self.topic = Some(t.content.topic.clone());
|
||||
true
|
||||
}
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue