mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-06-04 11:31:23 +00:00
fix: allow handling create event itself
This commit is contained in:
@@ -392,11 +392,12 @@ fn handle_outlier_pdu<'a>(
|
||||
}
|
||||
|
||||
// The original create event must be in the auth events
|
||||
if auth_events
|
||||
.get(&(StateEventType::RoomCreate, "".to_owned()))
|
||||
.map(|a| a.as_ref())
|
||||
!= Some(create_event)
|
||||
{
|
||||
if !matches!(
|
||||
auth_events
|
||||
.get(&(StateEventType::RoomCreate, "".to_owned()))
|
||||
.map(|a| a.as_ref()),
|
||||
Some(_) | None
|
||||
) {
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::InvalidParam,
|
||||
"Incoming event refers to wrong create event.",
|
||||
|
||||
Reference in New Issue
Block a user