Mercurial > libervia-backend
comparison frontends/src/primitivus/chat.py @ 2067:7834743705f0
quich frontend, primivius (chat): better avatar handling:
- new getAvatar method in QuickApp which request vCard if avatar if needed and return default avatar is no avatar is found
- frontends based on quick frontend can now specify if they handle avatar or not using AVATARS_HANDLER
- when avatar is updated, occupant widget(s) and all message widget(s) of the concerned entity are updated
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 09 Sep 2016 23:54:33 +0200 |
parents | 62a99c214b57 |
children | 4f3ebf786fbc |
comparison
equal
deleted
inserted
replaced
2066:09c18fcd8225 | 2067:7834743705f0 |
---|---|
598 | 598 |
599 # MISC EVENTS # | 599 # MISC EVENTS # |
600 | 600 |
601 def onDelete(self): | 601 def onDelete(self): |
602 # FIXME: to be checked after refactoring | 602 # FIXME: to be checked after refactoring |
603 quick_chat.QuickChat.onDelete(self) | 603 super(Chat, self).onDelete() |
604 if self.type == C.CHAT_GROUP: | 604 if self.type == C.CHAT_GROUP: |
605 self.host.removeListener('presence', self.presenceListener) | 605 self.host.removeListener('presence', self.presenceListener) |
606 | 606 |
607 def onChatState(self, from_jid, state, profile): | 607 def onChatState(self, from_jid, state, profile): |
608 super(Chat, self).onChatState(from_jid, state, profile) | 608 super(Chat, self).onChatState(from_jid, state, profile) |