Update synapse/handlers/admin.py

Co-authored-by: Eric Eastwood <erice@element.io>
This commit is contained in:
Kegan Dougal
2026-03-10 15:03:06 +00:00
committed by GitHub
co-authored by Eric Eastwood
parent c9d8d9fdaf
commit 2f8fece6f0
+1 -1
View File
@@ -492,7 +492,7 @@ class AdminHandler:
"prev_state_events", None
)
assert prev_state_events is not None, (
"Parent event of redaction has no `prev_state_events` which should be impossible as `prev_state_events` is a required event in MSC4242 rooms"
"Parent event of redaction has no `prev_state_events` which should be impossible as `prev_state_events` is a required field in MSC4242 rooms"
)
# set the prev event to the offending message to allow for redactions
# to be processed in the case where the user has been kicked/banned before