quick_frontend: add a 'presence' listener for the 'presenceUpdate' signal

This commit is contained in:
souliane 2015-02-22 15:11:29 +01:00
commit ed8821d54b
2 changed files with 2 additions and 1 deletions

View file

@ -71,4 +71,4 @@ class Const(constants.Const):
WIDGET_RAISE = 'RAISE'
WIDGET_RECREATE = 'RECREATE'
LISTENERS = {'avatar'}
LISTENERS = {'avatar', 'presence'}

View file

@ -463,6 +463,7 @@ class QuickApp(object):
# self.showAlert(_("Watched jid [%s] is connected !") % entity.bare)
self.contact_lists[profile].updatePresence(entity, show, priority, statuses)
self.callListeners('presence', entity, show, priority, statuses, profile)
def roomJoinedHandler(self, room_jid_s, room_nicks, user_nick, profile):
"""Called when a MUC room is joined"""