diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-10-08 20:07:43 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-10-08 20:07:43 +0200 |
commit | 392d7d5568a2d122061597e5373e63d2469c1a3d (patch) | |
tree | 27142d719f848abe685897cd367e8d69a9bed719 /src/timeline | |
parent | More unused variables in bindings (diff) | |
download | nheko-392d7d5568a2d122061597e5373e63d2469c1a3d.tar.xz |
Try to fix windows build
Diffstat (limited to 'src/timeline')
-rw-r--r-- | src/timeline/EventStore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp index 141d2ece..d3c5c3fa 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp @@ -112,9 +112,9 @@ EventStore::EventStore(std::string room_id, QObject *) } emit messageSent(txn_id, event_id.event_id.to_string()); - if constexpr (mtx::events::message_content_to_type< - decltype(e.content)> == - mtx::events::EventType::RoomEncrypted) { + if constexpr (std::is_same_v< + decltype(e.content), + mtx::events::msg::Encrypted>) { auto event = decryptEvent({room_id_, e.event_id}, e); if (auto dec = |