quick_frontend: add a 'presence' listener for the 'presenceUpdate' signal
This commit is contained in:
parent
cf58422fcc
commit
ed8821d54b
2 changed files with 2 additions and 1 deletions
|
|
@ -71,4 +71,4 @@ class Const(constants.Const):
|
|||
WIDGET_RAISE = 'RAISE'
|
||||
WIDGET_RECREATE = 'RECREATE'
|
||||
|
||||
LISTENERS = {'avatar'}
|
||||
LISTENERS = {'avatar', 'presence'}
|
||||
|
|
|
|||
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue