Commit cf9e5fe9 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

fix: Handle missing trust data when displaying messages

Fixes #10856
parent d5de3f24
......@@ -394,8 +394,10 @@ def _get_encryption_details(additional_data: AdditionalDataDict
fingerprint = additional_data.get_value('encrypted', 'fingerprint')
trust_data = additional_data.get_value('encrypted', 'trust')
trust = Trust(trust_data)
return name, fingerprint, trust
if trust_data is not None:
trust_data = Trust(trust_data)
return name, fingerprint, trust_data
def has_receipt(self) -> bool:
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