fix receiving encrypted messages. fixes #5982

This commit is contained in:
Yann Leboulanger 2010-10-19 10:47:43 +02:00
parent 3cd28113f4
commit 6700307846
1 changed files with 1 additions and 1 deletions

View File

@ -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,