Commit 93e0b144 authored by Yann Leboulanger's avatar Yann Leboulanger

fix minimized groupchat disappearing in roster. Fixes #6826

parent fd7cb33f
...@@ -2499,12 +2499,13 @@ def _nec_gc_presence_received(self, obj): ...@@ -2499,12 +2499,13 @@ def _nec_gc_presence_received(self, obj):
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment