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
This commit is contained in:
parent
42167b6ae9
commit
78750cb265
2 changed files with 42 additions and 7 deletions
|
|
@ -600,7 +600,7 @@ class Chat(PrimitivusWidget, quick_chat.QuickChat):
|
|||
|
||||
def onDelete(self):
|
||||
# FIXME: to be checked after refactoring
|
||||
quick_chat.QuickChat.onDelete(self)
|
||||
super(Chat, self).onDelete()
|
||||
if self.type == C.CHAT_GROUP:
|
||||
self.host.removeListener('presence', self.presenceListener)
|
||||
|
||||
|
|
|
|||
|
|
@ -272,7 +272,8 @@ class PrimitivusTopWidget(sat_widgets.FocusPile):
|
|||
|
||||
|
||||
class PrimitivusApp(QuickApp, InputHistory):
|
||||
MB_HANDLE = False
|
||||
MB_HANDLER = False
|
||||
AVATAR_HANDLER = False
|
||||
|
||||
def __init__(self):
|
||||
QuickApp.__init__(self, create_bridge=DBusBridgeFrontend, xmlui=xmlui, check_options=quick_utils.check_options)
|
||||
|
|
|
|||
Loading…
Reference in a new issue