0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00

ircd:Ⓜ️ Add the event_id to the JSON in append(event) to client.

This commit is contained in:
Jason Volk 2019-07-10 07:17:55 -07:00
parent e54d880e6c
commit ae3980dd00

View file

@ -432,7 +432,13 @@ ircd::m::append(json::stack::object &object,
}
}
object.append(event);
if(!json::get<"event_id"_>(event))
{
auto _event(event);
json::get<"event_id"_>(_event) = event.event_id;
object.append(_event);
}
else object.append(event);
if(json::get<"state_key"_>(event) && has_event_idx)
{