# HG changeset patch # User Goffi # Date 1584978728 -3600 # Node ID 6c21a5a44b54433db87bb57ffa3551b9bf55a5db # Parent 20a807443c3f1c6f4a3b1f7fbe3b5938da515308 chat: show a padlock icon to indicate if message is e2e encrypted or not: if a unencrypted message is received in encrypted context, the icon will be red to indicate the problem. diff -r 20a807443c3f -r 6c21a5a44b54 cagou/plugins/plugin_wid_chat.kv --- a/cagou/plugins/plugin_wid_chat.kv Sun Mar 22 14:10:59 2020 +0100 +++ b/cagou/plugins/plugin_wid_chat.kv Mon Mar 23 16:52:08 2020 +0100 @@ -139,6 +139,13 @@ markup: True valign: 'middle' text: u"[b]{}[/b], {}".format(escape(root.nick), root.time_text) + Symbol: + size_hint_x: None + width: self.height + id: encrypted + symbol: 'lock-filled' if root.mess_data.encrypted else 'lock-open' + font_size: self.height - dp(3) + color: (1, 0, 0, 1) if not root.mess_data.encrypted and root.chat.encrypted else (0.55,0.55,0.55,1) Label: id: delivery color: C.COLOR_BTN_LIGHT