Fix a bug with reconnecting and auto-minimized autojoined groupchats

This commit is contained in:
Julien Pivotto 2007-06-12 13:12:52 +00:00
parent 741cc56a52
commit 692c390e5f
1 changed files with 2 additions and 1 deletions

View File

@ -755,7 +755,8 @@ class RosterWindow:
dialogs.ErrorDialog(
_('You cannot join a group chat while you are invisible'))
return
if minimize and not minimized_control_exists:
if minimize and not minimized_control_exists and \
not gajim.interface.msg_win_mgr.has_window(room_jid, account):
contact = gajim.contacts.create_contact(jid = room_jid, name = nick)
gc_control = GroupchatControl(None, contact, account)
gajim.interface.minimized_controls[account][room_jid] = gc_control