0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 23:08:20 +02:00

modules/federation/invite: Disable emption checks on invite; fix regression.

This commit is contained in:
Jason Volk 2021-02-07 11:15:29 -08:00
parent 2a0fe40d80
commit a6061a447a
2 changed files with 2 additions and 0 deletions

View file

@ -163,6 +163,7 @@ put__invite(client &client,
// Synapse may 403 a fetch of the prev_event of the invite event.
vmopts.phase.set(m::vm::phase::FETCH_PREV, false);
vmopts.phase.set(m::vm::phase::EMPTION, false);
// We don't want this eval throwing an exception because the response has
// already been made for this request.

View file

@ -233,6 +233,7 @@ try
// Synapse may 403 a fetch of the prev_event of the invite event.
vmopts.phase.set(m::vm::phase::FETCH_PREV, false);
vmopts.phase.set(m::vm::phase::EMPTION, false);
// Don't throw an exception for a re-evaluation; this will just be a no-op
vmopts.nothrows |= m::vm::fault::EXISTS;