correctly search for contact when doing pm
This commit is contained in:
parent
2e48120e0c
commit
e637d8ed15
|
@ -463,7 +463,9 @@ class CommonConnection:
|
||||||
msg_iq = iqs
|
msg_iq = iqs
|
||||||
else:
|
else:
|
||||||
msg_iq.setTo(fjid)
|
msg_iq.setTo(fjid)
|
||||||
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_:
|
if r_:
|
||||||
contact = gajim.contacts.get_contact(self.name, jid, r_)
|
contact = gajim.contacts.get_contact(self.name, jid, r_)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue