Skip to content

Add confirmation dialog when leaving a chat #99

Description

@yananes1

Currently, when a user clicks the "Leave" button in a chat, they are immediately removed without any confirmation. This can lead to accidental exits.
We need to add a confirmation step before the user leaves the chat.

Expected behavior:
When user clicks "Leave", show a confirmation dialog/modal
Dialog text: "Are you sure you want to leave this chat?" (or smth like this)
Provide two actions:
Yes → user leaves the chat
No → close dialog, no action taken

Acceptance criteria:

User is not removed immediately after clicking "Leave"
Confirmation dialog is displayed
"Yes" confirms leaving and removes the user
"No" cancels the action

Where is this button located: https://drive.google.com/file/d/1a3EJIOuy_18W2-813wMIEYKP1FPvSVUV/view?usp=sharing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions