aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/application.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-11-24 14:02:45 +0100
committerfiaxh <git@lightrise.org>2019-11-24 14:59:48 +0100
commit7624f349dea57083a92b817351515d15fa3c5f41 (patch)
tree8f25503edf8f238535816c56b1e23a9619ff0887 /main/src/ui/application.vala
parent10402f7b04da906e90165b5a86e7d259a89b8718 (diff)
downloaddino-7624f349dea57083a92b817351515d15fa3c5f41.tar.gz
dino-7624f349dea57083a92b817351515d15fa3c5f41.zip
Fix join dialog when having been invited to a MUC
fixes #661
Diffstat (limited to 'main/src/ui/application.vala')
-rw-r--r--main/src/ui/application.vala7
1 files changed, 4 insertions, 3 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala
index 138411a0..bff25696 100644
--- a/main/src/ui/application.vala
+++ b/main/src/ui/application.vala
@@ -167,10 +167,11 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
}
Box content_area = dialog.get_content_area();
content_area.add(conference_fragment);
+ conference_fragment.joined.connect(() => {
+ dialog.destroy();
+ });
dialog.response.connect((response_id) => {
- if (response_id == ResponseType.OK) {
- dialog.destroy();
- } else if (response_id == ResponseType.CANCEL) {
+ if (response_id == ResponseType.CANCEL) {
dialog.destroy();
}
});