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

ircd:Ⓜ️:event: Improve construction event_id related conditions.

This commit is contained in:
Jason Volk 2019-07-11 19:42:30 -07:00
parent 76148e2971
commit 9e10ddcc61

View file

@ -4070,7 +4070,11 @@ ircd::m::event::event(const json::object &source,
}
,event_id
{
event_id
event_id?
event_id:
defined(json::get<"event_id"_>(*this))?
id{json::get<"event_id"_>(*this)}:
id{},
}
,source
{
@ -4088,7 +4092,11 @@ ircd::m::event::event(const json::object &source,
}
,event_id
{
event_id
event_id?
event_id:
defined(json::get<"event_id"_>(*this))?
id{json::get<"event_id"_>(*this)}:
id{},
}
,source
{