Skip to content

Show a clear message/view when the user is no longer a joined member of a room (after leaving or getting kicked/banned) #656

@kevinaboos

Description

@kevinaboos

If the current user is removed (kicked or banned) from a joined room while that room is currently open in Robrix, then the RoomScreen should be updated to reflect that they are no longer a part of that room. Currently, the room is properly removed from the RoomsList, but the RoomScreen itself does not change, which is likely confusing to the user as it looks like they are still a joined member of the room and able to interact within it.

There are two possible designs we could adopt here:

  1. Show a footer, similar to the TombstoneFooter in the RoomInputBar, that displays the status of their membership in that room (whether they were joined or banned) and a button to re-join or knock on that room (if permitted).
    • This allows the user to still see the content of the room they were removed from, but not to send any messages.
  2. Hide the entire RoomScreen, and show only the content of the footer, but in a full view similar to the InviteScreen.
    • This prevents the user from seeing the room at all once they are kicked/banned.

I think both approaches have their merits, but at this point I am slightly in favor of approach 1.

For determining what message and button text to show, see the related logic in the AddRoomScreen for determining whether a room is in the Left, Kicked, or Banned state for the current user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedLooking for help from anyone!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions