From 3f1ee31404dea3f2d9d65cd13fe041d27cc810f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Mon, 10 Apr 2023 14:38:13 +0200 Subject: [PATCH] join-room: Don't try to join room on cancel --- src/session/join_room_dialog.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/session/join_room_dialog.rs b/src/session/join_room_dialog.rs index 0a53ff56..54431f46 100644 --- a/src/session/join_room_dialog.rs +++ b/src/session/join_room_dialog.rs @@ -79,7 +79,9 @@ mod imp { impl MessageDialogImpl for JoinRoomDialog { fn response(&self, response: &str) { - self.obj().join_room(); + if response == "join" { + self.obj().join_room(); + } self.parent_response(response) }