fix receiving encrypted messages. fixes #5982
This commit is contained in:
parent
3cd28113f4
commit
6700307846
|
@ -1412,7 +1412,7 @@ ConnectionJingle, ConnectionIBBytestream):
|
||||||
return
|
return
|
||||||
if obj.encrypted == 'xep200':
|
if obj.encrypted == 'xep200':
|
||||||
try:
|
try:
|
||||||
obj.stanza = self.session.decrypt_stanza(obj.stanza)
|
obj.stanza = obj.session.decrypt_stanza(obj.stanza)
|
||||||
obj.msgtxt = obj.stanza.getBody()
|
obj.msgtxt = obj.stanza.getBody()
|
||||||
except Exception:
|
except Exception:
|
||||||
self.dispatch('FAILED_DECRYPT', (obj.fjid, obj.timestamp,
|
self.dispatch('FAILED_DECRYPT', (obj.fjid, obj.timestamp,
|
||||||
|
|
Loading…
Reference in New Issue