0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 01:59:33 +02:00

ircd:Ⓜ️ Just disable MISSING_PREV_STATE check here.

This commit is contained in:
Jason Volk 2018-09-04 23:24:05 -07:00
parent 486a40fc39
commit e48750e6aa

View file

@ -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);