quick frontend (chat): added encrypted property
This commit is contained in:
parent
8e9905363e
commit
741bd88a19
1 changed files with 4 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue