From 7047621c173b434cf4b67cbaf81bfbb6174535c7 Mon Sep 17 00:00:00 2001 From: Nicolas Werner <nicolas.werner@hotmail.de> Date: Wed, 19 Jun 2019 14:17:58 +0200 Subject: [PATCH] Handle topic updates --- src/models/roommodel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/roommodel.cpp b/src/models/roommodel.cpp index 9322d1f..6418653 100644 --- a/src/models/roommodel.cpp +++ b/src/models/roommodel.cpp @@ -65,6 +65,7 @@ void Room::applyEvents(const std::vector<mtx::events::collections::TimelineEvent else if (const auto ev = boost::get<StateEvent<state::PinnedEvents>>(&e.data)) { } else if (const auto ev = boost::get<StateEvent<state::PowerLevels>>(&e.data)) { } else if (const auto ev = boost::get<StateEvent<state::Topic>>(&e.data)) { + this->topic = ev->content.topic; } else if (const auto ev = boost::get<EncryptedEvent<msg::Encrypted>>(&e.data)) { } else if (const auto ev = boost::get<RedactionEvent<msg::Redaction>>(&e.data)) { } else if (const auto ev = boost::get<Sticker>(&e.data)) { -- GitLab