Skip to content
Snippets Groups Projects
Verified Commit 585e9401 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix nested legacy relations

parent ce42797d
No related branches found
No related tags found
No related merge requests found
Pipeline #1164 passed
......@@ -38,6 +38,9 @@ from_json(const json &obj, Event<Content> &event)
if (obj.at("content").contains("m.relates_to"))
new_content["m.relates_to"] = obj.at("content").at("m.relates_to");
if (obj.at("content").at("m.new_content").contains("m.relates_to"))
new_content["m.new_content"]["m.relates_to"] =
obj.at("content").at("m.new_content").at("m.relates_to");
if (obj.at("content").contains("im.nheko.relations.v1.relations"))
new_content["im.nheko.relations.v1.relations"] =
obj.at("content").at("im.nheko.relations.v1.relations");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment