0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-01 00:08:22 +02:00

modules/s_fetch: Various conditions to bypass fetch.

This commit is contained in:
Jason Volk 2019-04-22 17:16:16 -07:00
parent 1dd2f3daa7
commit 6df0b72e21

View file

@ -282,6 +282,7 @@ ircd::m::fetch::auth_chain(const room &room,
m::vm::opts vmopts;
vmopts.non_conform.set(m::event::conforms::MISSING_PREV_STATE);
vmopts.infolog_accept = true;
vmopts.fetch = false;
for(const auto &event : events)
m::vm::eval
{
@ -362,6 +363,9 @@ ircd::m::fetch::hook_handler(const event &event,
if(type == "m.room.create")
return;
if(eval.copts && my(event))
return;
const m::event::id &event_id
{
at<"event_id"_>(event)