mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd:Ⓜ️:event: Improve construction event_id related conditions.
This commit is contained in:
parent
76148e2971
commit
9e10ddcc61
1 changed files with 10 additions and 2 deletions
|
@ -4070,7 +4070,11 @@ ircd::m::event::event(const json::object &source,
|
||||||
}
|
}
|
||||||
,event_id
|
,event_id
|
||||||
{
|
{
|
||||||
event_id
|
event_id?
|
||||||
|
event_id:
|
||||||
|
defined(json::get<"event_id"_>(*this))?
|
||||||
|
id{json::get<"event_id"_>(*this)}:
|
||||||
|
id{},
|
||||||
}
|
}
|
||||||
,source
|
,source
|
||||||
{
|
{
|
||||||
|
@ -4088,7 +4092,11 @@ ircd::m::event::event(const json::object &source,
|
||||||
}
|
}
|
||||||
,event_id
|
,event_id
|
||||||
{
|
{
|
||||||
event_id
|
event_id?
|
||||||
|
event_id:
|
||||||
|
defined(json::get<"event_id"_>(*this))?
|
||||||
|
id{json::get<"event_id"_>(*this)}:
|
||||||
|
id{},
|
||||||
}
|
}
|
||||||
,source
|
,source
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue