summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-08 20:07:43 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-08 20:07:43 +0200
commit392d7d5568a2d122061597e5373e63d2469c1a3d (patch)
tree27142d719f848abe685897cd367e8d69a9bed719 /src
parentMore unused variables in bindings (diff)
downloadnheko-392d7d5568a2d122061597e5373e63d2469c1a3d.tar.xz
Try to fix windows build
Diffstat (limited to 'src')
-rw-r--r--src/timeline/EventStore.cpp6
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 =