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):
if not app.config.get_per('accounts', self._account,
'answer_receipts'):
return
if properties.eme is not None:
# Don't send receipt for message which couldn't be decrypted
if not properties.is_encrypted:
return
contact = self._get_contact(properties)
if contact is None:
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