Fix Last Message Correction for PGP messages
This commit is contained in:
parent
caba5e1723
commit
298ba4d939
1 changed files with 8 additions and 1 deletions
|
@ -369,6 +369,13 @@ class CommonConnection:
|
||||||
if obj.xhtml:
|
if obj.xhtml:
|
||||||
obj.correction_msg.setXHTML(obj.xhtml)
|
obj.correction_msg.setXHTML(obj.xhtml)
|
||||||
|
|
||||||
|
if msgenc:
|
||||||
|
encrypted_tag = obj.correction_msg.getTag(
|
||||||
|
'x', namespace=nbxmpp.NS_ENCRYPTED)
|
||||||
|
obj.correction_msg.delChild(encrypted_tag)
|
||||||
|
obj.correction_msg.setTag(
|
||||||
|
'x', namespace=nbxmpp.NS_ENCRYPTED).setData(msgenc)
|
||||||
|
|
||||||
if obj.session:
|
if obj.session:
|
||||||
obj.session.last_send = time.time()
|
obj.session.last_send = time.time()
|
||||||
|
|
||||||
|
@ -398,7 +405,7 @@ class CommonConnection:
|
||||||
msg_iq.setID(obj.msg_id)
|
msg_iq.setID(obj.msg_id)
|
||||||
|
|
||||||
if msgenc:
|
if msgenc:
|
||||||
msg_iq.setTag(nbxmpp.NS_ENCRYPTED + ' x').setData(msgenc)
|
msg_iq.setTag('x', namespace=nbxmpp.NS_ENCRYPTED).setData(msgenc)
|
||||||
|
|
||||||
if obj.form_node:
|
if obj.form_node:
|
||||||
msg_iq.addChild(node=obj.form_node)
|
msg_iq.addChild(node=obj.form_node)
|
||||||
|
|
Loading…
Add table
Reference in a new issue