From 2e1e2e2c860f3baff1d39982e74d9934080f7b35 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Thu, 20 Apr 2006 07:43:24 +0000 Subject: [PATCH] chat_control.contact MUST always be a Contact instance. Fixes #1874 --- src/chat_control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat_control.py b/src/chat_control.py index 4e1c106c7c..03b01244a2 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -31,6 +31,7 @@ from common import helpers from message_control import MessageControl from conversation_textview import ConversationTextview from message_textview import MessageTextView +from common.contacts import GC_Contact from common.logger import Constants constants = Constants() @@ -1619,4 +1620,6 @@ class ChatControl(ChatControlBase): # Refreshing contact self.contact = gajim.contacts.get_contact_with_highest_priority( self.account, self.contact.jid) + if isinstance(self.contact, GC_Contact): + self.contact = gajim.contacts.contact_from_gc_contact(self.contact) self.draw_banner() -- GitLab