quick frontend (chat): added encrypted property

This commit is contained in:
Goffi 2020-03-23 16:53:29 +01:00
commit 741bd88a19

View file

@ -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]