From 0690a35eeab668c7b1565e7d0def4875fb73d047 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 29 Mar 2006 14:31:05 +0000 Subject: [PATCH] don't join already opened rooms when we come back invisible. Fixes #1777 --- src/gajim.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index c1a3284b5..3edfbde03 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1223,8 +1223,12 @@ class Interface: def handle_event_signed_in(self, account, empty): '''SIGNED_IN event is emitted when we sign in, so handle it''' - # join already open groupchats self.roster.actions_menu_needs_rebuild = True + invisible_show = gajim.SHOW_LIST.index('invisible') + # We cannot join rooms if we are invisible + if gajim.connections[account].connected == invisible_show: + return + # join already open groupchats for gc_control in self.msg_win_mgr.get_controls(message_control.TYPE_GC): if account != gc_control.account: continue