diff --git a/crates/ruma-state-res/CHANGELOG.md b/crates/ruma-state-res/CHANGELOG.md index 88e64c66..40e5efc1 100644 --- a/crates/ruma-state-res/CHANGELOG.md +++ b/crates/ruma-state-res/CHANGELOG.md @@ -1,5 +1,11 @@ # [unreleased] +Bug fixes: + +* Fix third party invite event authorization. The event was not allowed even + after passing all the required checks, so it could fail further down the + algorithm. + # 0.8.0 Bug fixes: diff --git a/crates/ruma-state-res/src/event_auth.rs b/crates/ruma-state-res/src/event_auth.rs index bbc07128..e84a4dcb 100644 --- a/crates/ruma-state-res/src/event_auth.rs +++ b/crates/ruma-state-res/src/event_auth.rs @@ -364,6 +364,9 @@ pub fn auth_check( warn!("sender's cannot send invites in this room"); return Ok(false); } + + info!("m.room.third_party_invite event was allowed"); + return Ok(true); } // If the event type's required power level is greater than the sender's power level, reject