mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Fix serialization bug introduced in 9eddcfc42f
This commit is contained in:
parent
4d20839d74
commit
50d5891493
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue