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:
Jean-Marie Traissard 2008-04-15 17:25:59 +00:00
parent f6f6f9fe5c
commit 88f7abd795
1 changed files with 7 additions and 3 deletions

View File

@ -1534,9 +1534,13 @@ 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'],
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):