Skip to content
Snippets Groups Projects
Commit 0690a35e authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't join already opened rooms when we come back invisible. Fixes #1777

parent c165c123
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment