Fix serialization bug introduced in 9eddcfc42f

pull/218/head
Nicolas Werner 5 years ago
parent 4d20839d74
commit 50d5891493
  1. 2
      src/EventAccessors.cpp

@ -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);
} }

Loading…
Cancel
Save