mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 15:33:45 -04:00
base: Store the room topic with the room summary.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user