prevent traceback when we have in our roster a groupchat. Fixes #4957

This commit is contained in:
Yann Leboulanger 2009-04-08 09:58:49 +00:00
parent 7d964232a4
commit 16456b3b96
1 changed files with 1 additions and 1 deletions

View File

@ -2007,7 +2007,7 @@ class RosterWindow:
# print status in chat window and update status/GPG image
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(
account, contact.jid)
ctrl.update_status_display(name, uf_show, status)