quick_frontends, primitivus (contact list): added nick observer + implemented onNickUpdate

This commit is contained in:
Goffi 2015-02-24 17:14:10 +01:00
commit 8f5b116211

View file

@ -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):