diff options
author | fiaxh <git@mx.ax.lt> | 2017-04-23 13:50:32 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-04-23 14:03:44 +0200 |
commit | 3eb9aa0fa79ea9fcebb5f702f81c2e54aafdc8cc (patch) | |
tree | 01d04b731296a807285621ad628e79e48ef3c077 /main/src/ui/unified_window.vala | |
parent | 5c8275ed4efdc7a3a0bc2a9c3a3f46d0383ddcf4 (diff) | |
download | dino-3eb9aa0fa79ea9fcebb5f702f81c2e54aafdc8cc.tar.gz dino-3eb9aa0fa79ea9fcebb5f702f81c2e54aafdc8cc.zip |
Sync MUC join/part behaviour with autojoin flag in bookmarks
Diffstat (limited to 'main/src/ui/unified_window.vala')
-rw-r--r-- | main/src/ui/unified_window.vala | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/src/ui/unified_window.vala b/main/src/ui/unified_window.vala index 1c4474c7..7fd4640a 100644 --- a/main/src/ui/unified_window.vala +++ b/main/src/ui/unified_window.vala @@ -39,8 +39,12 @@ public class UnifiedWindow : Window { stream_interactor.account_added.connect((account) => { check_stack(true); }); stream_interactor.account_removed.connect((account) => { check_stack(); }); - stream_interactor.get_module(ConversationManager.IDENTITY).conversation_activated.connect((conversation) => { check_stack(); }); - stream_interactor.get_module(ConversationManager.IDENTITY).conversation_deactivated.connect((conversation) => { check_stack(); }); + stream_interactor.get_module(ConversationManager.IDENTITY).conversation_activated.connect( (conversation) => { + Idle.add( () => { check_stack(); return false; }); + }); + stream_interactor.get_module(ConversationManager.IDENTITY).conversation_deactivated.connect( (conversation) => { + Idle.add( () => { check_stack(); return false; }); + }); accounts_placeholder.primary_button.clicked.connect(() => { get_application().activate_action("accounts", null); }); conversations_placeholder.primary_button.clicked.connect(() => { get_application().activate_action("add_chat", null); }); conversations_placeholder.secondary_button.clicked.connect(() => { get_application().activate_action("add_conference", null); }); |