diff sat_frontends/quick_frontend/quick_chat.py @ 3229:2556eb576aed

quick frontend (chat): added `encrypted` property
author Goffi <goffi@goffi.org>
date Mon, 23 Mar 2020 16:53:29 +0100
parents 4b5c77673015
children 6cf4bd6972c2
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_chat.py	Mon Mar 23 16:53:03 2020 +0100
+++ b/sat_frontends/quick_frontend/quick_chat.py	Mon Mar 23 16:53:29 2020 +0100
@@ -150,6 +150,10 @@
         ret = self.host.getAvatar(self.from_jid, profile=self.profile)
         return ret
 
+    @property
+    def encrypted(self):
+        return self.extra.get("encrypted", False)
+
     def getNick(self, entity):
         """Return nick of an entity when possible"""
         contact_list = self.host.contact_lists[self.profile]