summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-18 03:30:04 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-18 04:23:36 +0200
commit7de1fc62e8a90bc571b342e8990e3890f7f5ffc1 (patch)
tree7873ec3fae9e2bb64e558cf77263d5a043de56fc /src/Cache.cpp
parentMerge pull request #202 from aaronraimist/brew-libolm (diff)
downloadnheko-7de1fc62e8a90bc571b342e8990e3890f7f5ffc1.tar.xz
Tag rooms via context menu
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp
index 3a388bb9..1061e60e 100644
--- a/src/Cache.cpp
+++ b/src/Cache.cpp
@@ -915,8 +915,8 @@ Cache::saveState(const mtx::responses::Sync &res)
                 bool has_new_tags = false;
                 for (const auto &evt : room.second.account_data.events) {
                         // for now only fetch tag events
-                        if (std::holds_alternative<Event<account_data::Tag>>(evt)) {
-                                auto tags_evt = std::get<Event<account_data::Tag>>(evt);
+                        if (std::holds_alternative<Event<account_data::Tags>>(evt)) {
+                                auto tags_evt = std::get<Event<account_data::Tags>>(evt);
                                 has_new_tags  = true;
                                 for (const auto &tag : tags_evt.content.tags) {
                                         updatedInfo.tags.push_back(tag.first);
@@ -1081,7 +1081,7 @@ Cache::roomsWithTagUpdates(const mtx::responses::Sync &res)
         for (const auto &room : res.rooms.join) {
                 bool hasUpdates = false;
                 for (const auto &evt : room.second.account_data.events) {
-                        if (std::holds_alternative<Event<account_data::Tag>>(evt)) {
+                        if (std::holds_alternative<Event<account_data::Tags>>(evt)) {
                                 hasUpdates = true;
                         }
                 }