0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00
This commit is contained in:
Jason Volk 2023-01-13 18:16:06 -08:00
parent 81169ab47a
commit d5c0e60633
2 changed files with 11 additions and 2 deletions

View file

@ -82,9 +82,15 @@ ircd::m::sync::rooms_linear(data &data)
&& membership == "join"
};
const bool is_own_positive
{
is_own_membership
&& (membership == "join" || membership == "invite")
};
//assert(!is_own_join || m::membership(*data.event) == "join");
assert(!is_own_join || !!m::membership(membuf, room, data.user));
assert(is_own_join || !json::get<"room_id"_>(*data.event) || m::exists(room));
assert(is_own_positive || !json::get<"room_id"_>(*data.event) || m::exists(room));
if(should_ignore(data))
return false;

View file

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