Skip to content
Snippets Groups Projects
Unverified Commit 7c2284b2 authored by morguldir's avatar morguldir Committed by GitHub
Browse files

Make admin api redactions use the requester to send the redaction (#18029)

parent d69c00b5
No related branches found
No related tags found
No related merge requests found
Fix a bug preventing the admin redaction endpoint from working on messages from remote users.
......@@ -473,7 +473,7 @@ class AdminHandler:
"type": EventTypes.Redaction,
"content": {"reason": reason} if reason else {},
"room_id": room,
"sender": user_id,
"sender": requester.user.to_string(),
}
if room_version.updated_redaction_rules:
event_dict["content"]["redacts"] = event.event_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment