summary refs log tree commit diff
path: root/src/ChatPage.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-01 13:35:10 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-01 13:35:10 +0300
commit990a3a97c7578c30223ff4f348b9241be75f5bf9 (patch)
tree392164db51daf80aac81bde90f35129dd338b972 /src/ChatPage.h
parentRemove nix script which was unmaintained (diff)
downloadnheko-990a3a97c7578c30223ff4f348b9241be75f5bf9.tar.xz
Merge matrix-structs into the client lib
Diffstat (limited to 'src/ChatPage.h')
-rw-r--r--src/ChatPage.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ChatPage.h b/src/ChatPage.h
index 9398b443..2000b9e5 100644
--- a/src/ChatPage.h
+++ b/src/ChatPage.h
@@ -18,6 +18,7 @@
 #pragma once
 
 #include <atomic>
+#include <boost/variant.hpp>
 
 #include <QFrame>
 #include <QHBoxLayout>
@@ -249,8 +250,8 @@ ChatPage::getMemberships(const std::vector<Collection> &collection) const
         using Member = mtx::events::StateEvent<mtx::events::state::Member>;
 
         for (const auto &event : collection) {
-                if (mpark::holds_alternative<Member>(event)) {
-                        auto member = mpark::get<Member>(event);
+                if (boost::get<Member>(event) != nullptr) {
+                        auto member = boost::get<Member>(event);
                         memberships.emplace(member.state_key, member);
                 }
         }