[ ] When visiting the user profile of a room member, anyone who has the power level to kick will see an additional button to remove that member from the room.
[ ] When the user clicks this button, if they have the power level to ban they will be prompted whether the action is permanent or if the member will be allowed to rejoin.
[ ] Users that are kicked out of a room are no longer members of the room. They don’t show up in the room-member list anymore.
[ ] Users that are banned should show at the end of the room-member list in a section only visible to members that have the right to ban room members. Visiting the profile of one of these users should show a button to unban that user.
[ ] The new button should not be shown when visiting a user profile from a DM (1:1 room with isDirect && isEncrypted), only for regular rooms.
Compatibility with other matrix clients that use the moderation APIs in other ways, such as supporting power levels outside of member, mod and admin.
Open questions
### Questions
- [ ] PRD says that users can be unbanned by anyone who can kick and ban users, but in reality the API only cares about the power-level for banning. Do we specifically want to check both in the app or are we happy with just checking for ban?
Description
Designs
Acceptance criteria
isDirect && isEncrypted
), only for regular rooms.Size estimate
S
Dependencies
Out of scope
Open questions
Subtasks