Commit ecac05e2 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Receipts: Don't send receipt if message could not be decrypted

Fixes #10051
parent be6b1a62
...@@ -56,6 +56,12 @@ def _process_message_receipt(self, _con, stanza, properties): ...@@ -56,6 +56,12 @@ def _process_message_receipt(self, _con, stanza, properties):
if not app.config.get_per('accounts', self._account, if not app.config.get_per('accounts', self._account,
'answer_receipts'): 'answer_receipts'):
return return
if properties.eme is not None:
# Don't send receipt for message which couldn't be decrypted
if not properties.is_encrypted:
contact = self._get_contact(properties) contact = self._get_contact(properties)
if contact is None: if contact is None:
return return
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment