From 741bd88a19b64ba7c53aa711fcc15af85d8b8a23 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 23 Mar 2020 16:53:29 +0100 Subject: [PATCH] quick frontend (chat): added `encrypted` property --- sat_frontends/quick_frontend/quick_chat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sat_frontends/quick_frontend/quick_chat.py b/sat_frontends/quick_frontend/quick_chat.py index 9d7bbb31..476e0763 100644 --- a/sat_frontends/quick_frontend/quick_chat.py +++ b/sat_frontends/quick_frontend/quick_chat.py @@ -150,6 +150,10 @@ class Message: 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]