From 64fff933af8719147bfbbb72fe560a9c42cfeac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 24 Nov 2020 10:56:43 +0100 Subject: [PATCH] base: Store the room topic with the room summary. --- matrix_sdk_base/src/store.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matrix_sdk_base/src/store.rs b/matrix_sdk_base/src/store.rs index 44a70fb5..ffc94aaf 100644 --- a/matrix_sdk_base/src/store.rs +++ b/matrix_sdk_base/src/store.rs @@ -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, canonical_alias: Option, avatar_url: Option, + topic: Option, 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, } }