Skip to content
Snippets Groups Projects
Commit 2e1e2e2c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

chat_control.contact MUST always be a Contact instance. Fixes #1874

parent 14728b60
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,7 @@ from common import helpers ...@@ -31,6 +31,7 @@ from common import helpers
from message_control import MessageControl from message_control import MessageControl
from conversation_textview import ConversationTextview from conversation_textview import ConversationTextview
from message_textview import MessageTextView from message_textview import MessageTextView
from common.contacts import GC_Contact
from common.logger import Constants from common.logger import Constants
constants = Constants() constants = Constants()
...@@ -1619,4 +1620,6 @@ class ChatControl(ChatControlBase): ...@@ -1619,4 +1620,6 @@ class ChatControl(ChatControlBase):
# Refreshing contact # Refreshing contact
self.contact = gajim.contacts.get_contact_with_highest_priority( self.contact = gajim.contacts.get_contact_with_highest_priority(
self.account, self.contact.jid) self.account, self.contact.jid)
if isinstance(self.contact, GC_Contact):
self.contact = gajim.contacts.contact_from_gc_contact(self.contact)
self.draw_banner() self.draw_banner()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment