Commit 1139f2f5 authored by Yann Leboulanger's avatar Yann Leboulanger

correctly search for contact when doing pm

parent 2e0ae1eb
......@@ -464,7 +464,9 @@ def _on_continue_message(self, type_, msg, msgtxt, original_message, fjid,
msg_iq = iqs
r_ = resource or gajim.get_resource_from_jid(fjid)
r_ = resource
if not r_ and jid != fjid: # Only if we're not in a pm
r_ = gajim.get_resource_from_jid(fjid)
if r_:
contact = gajim.contacts.get_contact(, jid, r_)
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