summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-30 17:25:18 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-30 17:25:18 +0200
commit50d5891493a2454b8e90520f28adc1bec38122ea (patch)
treed0ae72ae9934e10a358ebe73effd2ecb35da4ae6
parentSkip precompiled headers for obc-c code (diff)
downloadnheko-50d5891493a2454b8e90520f28adc1bec38122ea.tar.xz
Fix serialization bug introduced in 9eddcfc42f3cd4e513f72d9b7fef9a98b43a378d
-rw-r--r--src/EventAccessors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/EventAccessors.cpp b/src/EventAccessors.cpp
index da4e324a..a2d8adbb 100644
--- a/src/EventAccessors.cpp
+++ b/src/EventAccessors.cpp
@@ -404,5 +404,5 @@ mtx::accessors::media_width(const mtx::events::collections::TimelineEvents &even
 nlohmann::json
 mtx::accessors::serialize_event(const mtx::events::collections::TimelineEvents &event)
 {
-        return std::visit([](const auto &e) { return nlohmann::json{e}; }, event);
+        return std::visit([](const auto &e) { return nlohmann::json(e); }, event);
 }