fix minimized groupchat disappearing in roster. Fixes #6826

This commit is contained in:
Yann Leboulanger 2011-05-04 19:50:05 +02:00
parent fd7cb33f87
commit 93e0b144c7

View file

@ -2499,12 +2499,13 @@ class RosterWindow:
else: else:
return return
contact = gajim.contacts.get_contact_with_highest_priority(account, if obj.nick == gc_ctrl.nick:
obj.room_jid) contact = gajim.contacts.get_contact_with_highest_priority(account,
if contact: obj.room_jid)
contact.show = obj.show if contact:
self.draw_contact(obj.room_jid, account) contact.show = obj.show
self.draw_group(_('Groupchats'), account) self.draw_contact(obj.room_jid, account)
self.draw_group(_('Groupchats'), account)
def _nec_roster_received(self, obj): def _nec_roster_received(self, obj):
if obj.received_from_server: if obj.received_from_server: