prevent traceback when we have in our roster a groupchat. Fixes #4957
This commit is contained in:
parent
7d964232a4
commit
16456b3b96
|
@ -2007,7 +2007,7 @@ class RosterWindow:
|
||||||
|
|
||||||
# print status in chat window and update status/GPG image
|
# print status in chat window and update status/GPG image
|
||||||
ctrl = gajim.interface.msg_win_mgr.get_control(contact.jid, account)
|
ctrl = gajim.interface.msg_win_mgr.get_control(contact.jid, account)
|
||||||
if ctrl:
|
if ctrl and ctrl.type_id != message_control.TYPE_GC:
|
||||||
ctrl.contact = gajim.contacts.get_contact_with_highest_priority(
|
ctrl.contact = gajim.contacts.get_contact_with_highest_priority(
|
||||||
account, contact.jid)
|
account, contact.jid)
|
||||||
ctrl.update_status_display(name, uf_show, status)
|
ctrl.update_status_display(name, uf_show, status)
|
||||||
|
|
Loading…
Reference in New Issue