Fix serialization bug introduced in 9eddcfc42f

This commit is contained in:
Nicolas Werner 2020-05-30 17:25:18 +02:00
parent 4d20839d74
commit 50d5891493

View file

@ -404,5 +404,5 @@ mtx::accessors::media_width(const mtx::events::collections::TimelineEvents &even
nlohmann::json nlohmann::json
mtx::accessors::serialize_event(const mtx::events::collections::TimelineEvents &event) 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);
} }