Fix "You are already in this GC" bugging at reconnection. Happened if we receive
bookmarks after we already reconnected to opened GC
This commit is contained in:
parent
f6f6f9fe5c
commit
88f7abd795
10
src/gajim.py
10
src/gajim.py
|
@ -1534,10 +1534,14 @@ class Interface:
|
|||
|
||||
# join autojoinable rooms
|
||||
for bm in bms:
|
||||
minimize = bm['minimize'] in ('1', 'true')
|
||||
if bm['autojoin'] in ('1', 'true'):
|
||||
self.roster.join_gc_room(account, bm['jid'], bm['nick'],
|
||||
bm['password'], minimize = minimize)
|
||||
jid = bm['jid']
|
||||
if not gajim.gc_connected[account].has_key(jid) or \
|
||||
not gajim.gc_connected[account][jid]:
|
||||
# we are not already connected
|
||||
minimize = bm['minimize'] in ('1', 'true')
|
||||
self.roster.join_gc_room(account, jid, bm['nick'],
|
||||
bm['password'], minimize = minimize)
|
||||
|
||||
def handle_event_file_send_error(self, account, array):
|
||||
jid = array[0]
|
||||
|
|
Loading…
Reference in New Issue