Ignore the resource
This commit is contained in:
parent
247602d0f7
commit
1d1873661e
4
otr.py
4
otr.py
|
@ -127,7 +127,7 @@ class OTR(context.Account):
|
||||||
|
|
||||||
# decrypt message
|
# decrypt message
|
||||||
def decrypt(self,stanza,properties):
|
def decrypt(self,stanza,properties):
|
||||||
peer = stanza.getFrom()
|
peer = stanza.getFrom().new_as_bare()
|
||||||
msgtxt = stanza.getBody()
|
msgtxt = stanza.getBody()
|
||||||
channel, ctl = self.getContext(peer), self.getControl(peer)
|
channel, ctl = self.getContext(peer), self.getControl(peer)
|
||||||
try:
|
try:
|
||||||
|
@ -143,7 +143,7 @@ class OTR(context.Account):
|
||||||
|
|
||||||
# encrypt message
|
# encrypt message
|
||||||
def encrypt(self,event,callback):
|
def encrypt(self,event,callback):
|
||||||
peer = event.msg_iq.getTo()
|
peer = event.msg_iq.getTo().new_as_bare()
|
||||||
channel, ctl = self.getContext(peer), event.control
|
channel, ctl = self.getContext(peer), event.control
|
||||||
if event.xhtml: return ctl.send_message(event.message) # skip xhtml messages
|
if event.xhtml: return ctl.send_message(event.message) # skip xhtml messages
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue