Support for the client-side component of MSC4293: Redact on ban #874
Labels
No labels
Bug
Cherry-picking
Database
Dependencies
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/MSC
Matrix/Media
Meta
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Wont fix
old/ci/cd
old/rust
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: continuwuation/continuwuity#874
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PduBuilder::state(body.user_id.to_string(), &RoomMemberEventContent {
membership: MembershipState::Ban,
reason: body.reason.clone(),
displayname: None, // display name may be offensive
avatar_url: None, // avatar may be offensive
is_direct: None,
join_authorized_via_users_server: None,
third_party_invite: None,
..current_member_content
The ability to pass through
org.matrix.msc4293.redact_events
(and in futureredact_events
) when a user calls/ban
into the ban membership allows clients that support MSC4293 to display events sent by the sender as redacted, event without server-side redaction support.Side note, I don't want to implement this MSC's server-side component until sending actual redactions for events is supported. Right now, the server-side component requires redacting the sender's events in the database and sending the redacted copies over /sync and /messages instead, however, this means that only bleeding edge clients and servers will benefit from this MSC, meaning it's a bit of a waste of time to implement it atm. #872 is more practical and opens more doors in the future.
The MSC clarified that sending redactions is allowed, and travis suggested some ways that servers may decide to issue redactions. I think our best approach would be to issue redactions for all events in room versions before MSC4298 in an one-shot fashion, relying on clients to hide any events that we might miss. Minimum effort, high effect.
For now, we'll stick to just letting clients fight it out.