Commit a1592ee2 authored by Yann Leboulanger's avatar Yann Leboulanger

update contact instance in chat window when we talk to another resource. Fixes #7700

parent f2e5b26f
......@@ -464,8 +464,9 @@ def _on_continue_message(self, type_, msg, msgtxt, original_message, fjid,
msg_iq = iqs
if resource:
contact = gajim.contacts.get_contact(, jid, resource)
r_ = resource or gajim.get_resource_from_jid(fjid)
if r_:
contact = gajim.contacts.get_contact(, jid, r_)
contact = gajim.contacts.get_contact_with_highest_priority(, jid)
......@@ -160,6 +160,7 @@ def _nec_decrypted_message_received(self, obj):
if ctrl:
self.control = ctrl
self.control.set_session(self) = contact
if not pm:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment