quick_frontends, primitivus (contact list): added nick observer + implemented onNickUpdate
This commit is contained in:
parent
60bc78db4c
commit
8f5b116211
1 changed files with 19 additions and 2 deletions
|
|
@ -313,6 +313,8 @@ class QuickApp(object):
|
|||
@param type_: type of event, can be:
|
||||
- avatar: called when avatar data is updated
|
||||
args: (entity, avatar file, profile)
|
||||
- nick: called when nick data is updated
|
||||
args: (entity, new_nick, profile)
|
||||
- presence: called when a presence is received
|
||||
args: (entity, show, priority, statuses, profile)
|
||||
@param callback: method to call on event
|
||||
|
|
@ -685,6 +687,7 @@ class QuickApp(object):
|
|||
if key == "nick":
|
||||
if entity in self.contact_lists[profile]:
|
||||
self.contact_lists[profile].setCache(entity, 'nick', value)
|
||||
self.callListeners('nick', entity, value, profile=profile)
|
||||
elif key == "avatar":
|
||||
if entity in self.contact_lists[profile]:
|
||||
def gotFilename(filename):
|
||||
|
|
|
|||
Loading…
Reference in a new issue