diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-30 17:25:18 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-30 17:25:18 +0200 |
commit | 50d5891493a2454b8e90520f28adc1bec38122ea (patch) | |
tree | d0ae72ae9934e10a358ebe73effd2ecb35da4ae6 | |
parent | Skip precompiled headers for obc-c code (diff) | |
download | nheko-50d5891493a2454b8e90520f28adc1bec38122ea.tar.xz |
Fix serialization bug introduced in 9eddcfc42f3cd4e513f72d9b7fef9a98b43a378d
-rw-r--r-- | src/EventAccessors.cpp | 2 |
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); } |