mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 14:31:11 +01:00
modules/m_room_auth: Add room check to rule 2.
This commit is contained in:
parent
911e68e5f5
commit
01df345789
1 changed files with 10 additions and 0 deletions
|
@ -362,6 +362,16 @@ ircd::m::check_room_auth_rule_2(const m::event &event,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// aa. have auth events that are not in the same room.
|
||||||
|
if(at<"room_id"_>(a) != at<"room_id"_>(event))
|
||||||
|
throw FAIL
|
||||||
|
{
|
||||||
|
"Auth event %s in %s cannot be used in %s",
|
||||||
|
string_view{a.event_id},
|
||||||
|
at<"room_id"_>(a),
|
||||||
|
at<"room_id"_>(event),
|
||||||
|
};
|
||||||
|
|
||||||
// b. have entries whose type and state_key don't match those specified by
|
// b. have entries whose type and state_key don't match those specified by
|
||||||
// the auth events selection algorithm described in the server...
|
// the auth events selection algorithm described in the server...
|
||||||
const string_view &type
|
const string_view &type
|
||||||
|
|
Loading…
Reference in a new issue