Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
cf9e5fe9 by wurstsalat at 2022-05-14T01:42:28+02:00
fix: Handle missing trust data when displaying messages
Fixes #10856
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/message.py
Changes:
=====================================
gajim/gtk/conversation/rows/message.py
=====================================
@@ -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
@property
def has_receipt(self) -> bool:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/cf9e5fe99287a726f491aa35fdf04db13ad6de01
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/cf9e5fe99287a726f491aa35fdf04db13ad6de01
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits