mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 08:54:02 +01:00
ircd:Ⓜ️ Add the event_id to the JSON in append(event) to client.
This commit is contained in:
parent
e54d880e6c
commit
ae3980dd00
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
if(json::get<"state_key"_>(event) && has_event_idx)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue