auto_join_bookmarks only join non-opened groupchats. Opened one are already auto-joined on re-connection. Fixes #3891
This commit is contained in:
parent
685707e2e0
commit
8973b91070
1 changed files with 3 additions and 2 deletions
|
@ -3142,8 +3142,9 @@ class Interface:
|
||||||
for bm in gajim.connections[account].bookmarks:
|
for bm in gajim.connections[account].bookmarks:
|
||||||
if bm['autojoin'] in ('1', 'true'):
|
if bm['autojoin'] in ('1', 'true'):
|
||||||
jid = bm['jid']
|
jid = bm['jid']
|
||||||
if not gajim.gc_connected[account].has_key(jid) or\
|
# Only join non-opened groupchats. Opened one are already
|
||||||
not gajim.gc_connected[account][jid]:
|
# auto-joined on re-connection
|
||||||
|
if not gajim.gc_connected[account].has_key(jid):
|
||||||
# we are not already connected
|
# we are not already connected
|
||||||
minimize = bm['minimize'] in ('1', 'true')
|
minimize = bm['minimize'] in ('1', 'true')
|
||||||
gajim.interface.join_gc_room(account, jid, bm['nick'],
|
gajim.interface.join_gc_room(account, jid, bm['nick'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue