diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-01 13:35:10 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-01 13:35:10 +0300 |
commit | 990a3a97c7578c30223ff4f348b9241be75f5bf9 (patch) | |
tree | 392164db51daf80aac81bde90f35129dd338b972 /src/ChatPage.h | |
parent | Remove nix script which was unmaintained (diff) | |
download | nheko-990a3a97c7578c30223ff4f348b9241be75f5bf9.tar.xz |
Merge matrix-structs into the client lib
Diffstat (limited to 'src/ChatPage.h')
-rw-r--r-- | src/ChatPage.h | 5 |
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); } } |