Use BareJID when sending message to ourself
This commit is contained in:
parent
e02798dc19
commit
c49d13bcae
|
@ -355,6 +355,9 @@ class CommonConnection:
|
||||||
else:
|
else:
|
||||||
msgtxt = obj.message
|
msgtxt = obj.message
|
||||||
|
|
||||||
|
if obj.jid == gajim.get_jid_from_account(self.name):
|
||||||
|
fjid = obj.jid
|
||||||
|
else:
|
||||||
fjid = obj.get_full_jid()
|
fjid = obj.get_full_jid()
|
||||||
|
|
||||||
if obj.correction_msg:
|
if obj.correction_msg:
|
||||||
|
|
|
@ -235,7 +235,8 @@ class MessageControl(object):
|
||||||
conn = gajim.connections[self.account]
|
conn = gajim.connections[self.account]
|
||||||
|
|
||||||
if not self.session:
|
if not self.session:
|
||||||
if not obj.resource:
|
if (not obj.resource and
|
||||||
|
obj.jid != gajim.get_jid_from_account(self.account)):
|
||||||
if self.resource:
|
if self.resource:
|
||||||
obj.resource = self.resource
|
obj.resource = self.resource
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -3916,7 +3916,7 @@ class RosterWindow:
|
||||||
contact = gajim.contacts.get_contact_with_highest_priority(account,
|
contact = gajim.contacts.get_contact_with_highest_priority(account,
|
||||||
jid)
|
jid)
|
||||||
if jid == gajim.get_jid_from_account(account):
|
if jid == gajim.get_jid_from_account(account):
|
||||||
resource = contact.resource
|
resource = None
|
||||||
|
|
||||||
gajim.interface.on_open_chat_window(None, contact, account, \
|
gajim.interface.on_open_chat_window(None, contact, account, \
|
||||||
resource=resource, session=session)
|
resource=resource, session=session)
|
||||||
|
|
Loading…
Reference in New Issue