Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
3228:cc3fea71c365 | 3229:2556eb576aed |
---|---|
147 @property | 147 @property |
148 def avatar(self): | 148 def avatar(self): |
149 """avatar full path or None if no avatar is found""" | 149 """avatar full path or None if no avatar is found""" |
150 ret = self.host.getAvatar(self.from_jid, profile=self.profile) | 150 ret = self.host.getAvatar(self.from_jid, profile=self.profile) |
151 return ret | 151 return ret |
152 | |
153 @property | |
154 def encrypted(self): | |
155 return self.extra.get("encrypted", False) | |
152 | 156 |
153 def getNick(self, entity): | 157 def getNick(self, entity): |
154 """Return nick of an entity when possible""" | 158 """Return nick of an entity when possible""" |
155 contact_list = self.host.contact_lists[self.profile] | 159 contact_list = self.host.contact_lists[self.profile] |
156 if self.type == C.MESS_TYPE_INFO and self.info_type in ROOM_USER_MOVED: | 160 if self.type == C.MESS_TYPE_INFO and self.info_type in ROOM_USER_MOVED: |