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

ircd:Ⓜ️:event::auth: Fetch join_rules on membership=invite.

This commit is contained in:
Jason Volk 2019-08-17 13:56:02 -07:00
parent 7218a5db36
commit 272e28aebe

View file

@ -1733,7 +1733,7 @@ ircd::m::event::auth::check(std::nothrow_t,
room.get(std::nothrow, "m.room.member", at<"sender"_>(event)),
at<"type"_>(event) == "m.room.member" &&
membership(event) == "join"?
(membership(event) == "join" || membership(event) == "invite")?
room.get(std::nothrow, "m.room.join_rules", ""): 0UL,
at<"type"_>(event) == "m.room.member" &&