pub async fn confirm_leave_room_dialog(
    room: &Room,
    parent: &impl IsA<Widget>,
) -> Option<ConfirmLeaveRoomResponse>
Expand description

Show a dialog to confirm leaving a room.

This supports both leaving a joined room and rejecting an invite.

Returns None if the user did not confirm.