mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 16:33:53 +01:00
ircd:Ⓜ️ Just disable MISSING_PREV_STATE check here.
This commit is contained in:
parent
486a40fc39
commit
e48750e6aa
1 changed files with 2 additions and 0 deletions
|
@ -1732,10 +1732,12 @@ ircd::m::event::conforms::conforms(const event &e)
|
|||
if(empty(json::get<"prev_events"_>(e)))
|
||||
set(MISSING_PREV_EVENTS);
|
||||
|
||||
/*
|
||||
if(json::get<"type"_>(e) != "m.room.create")
|
||||
if(!empty(json::get<"state_key"_>(e)))
|
||||
if(empty(json::get<"prev_state"_>(e)))
|
||||
set(MISSING_PREV_STATE);
|
||||
*/
|
||||
|
||||
if(json::get<"depth"_>(e) != json::undefined_number && json::get<"depth"_>(e) < 0)
|
||||
set(DEPTH_NEGATIVE);
|
||||
|
|
Loading…
Reference in a new issue