Fix a bug with reconnecting and auto-minimized autojoined groupchats
This commit is contained in:
parent
741cc56a52
commit
692c390e5f
|
@ -755,7 +755,8 @@ class RosterWindow:
|
||||||
dialogs.ErrorDialog(
|
dialogs.ErrorDialog(
|
||||||
_('You cannot join a group chat while you are invisible'))
|
_('You cannot join a group chat while you are invisible'))
|
||||||
return
|
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)
|
contact = gajim.contacts.create_contact(jid = room_jid, name = nick)
|
||||||
gc_control = GroupchatControl(None, contact, account)
|
gc_control = GroupchatControl(None, contact, account)
|
||||||
gajim.interface.minimized_controls[account][room_jid] = gc_control
|
gajim.interface.minimized_controls[account][room_jid] = gc_control
|
||||||
|
|
Loading…
Reference in New Issue