Author: asterix Date: 2009-04-08 11:58:49 +0200 (Wed, 08 Apr 2009) New Revision: 11215
Modified: trunk/src/roster_window.py Log: prevent traceback when we have in our roster a groupchat. Fixes #4957
Modified: trunk/src/roster_window.py =================================================================== --- trunk/src/roster_window.py 2009-04-08 09:21:20 UTC (rev 11214) +++ trunk/src/roster_window.py 2009-04-08 09:58:49 UTC (rev 11215) @@ -2007,7 +2007,7 @@
# 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)