Skip to content

Switch from sending membership event for kick to using the /kick API #19018

@aaronraimist

Description

@aaronraimist

I created a PR to to Synapse to align Synapse's implementation of membership events with the way that the spec says they should work matrix-org/synapse#10807. The problem with that is it will reintroduce #1961 because right now when you click the kick button in MemberInfo or use the /kick slash command Element sends a membership event for that user rather than using the dedicated API https://spec.matrix.org/unstable/client-server-api/#post_matrixclientr0roomsroomidkick

So Element needs to switch over to using the /kick API so that behavior does not come back once the Synapse PR is merged.

  • Change slash command to use dedicated /kick API
  • Change MemberInfo to use dedicated /kick API
  • Investigate if there are any other areas where kicking or banning happen via membership events. The ban and unban buttons in MemberInfo, /ban and /unban slash commands, and the unban button in the room settings seem to all use the proper APIs.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions