Mercurial > libervia-backend
changeset 3229:2556eb576aed
quick frontend (chat): added `encrypted` property
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 23 Mar 2020 16:53:29 +0100 |
parents | cc3fea71c365 |
children | 109d94c62b95 |
files | sat_frontends/quick_frontend/quick_chat.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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]