From ed8821d54be499c0c4b5555f1e837817634a07d7 Mon Sep 17 00:00:00 2001 From: souliane Date: Sun, 22 Feb 2015 15:11:29 +0100 Subject: [PATCH] quick_frontend: add a 'presence' listener for the 'presenceUpdate' signal --- frontends/src/quick_frontend/constants.py | 2 +- frontends/src/quick_frontend/quick_app.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontends/src/quick_frontend/constants.py b/frontends/src/quick_frontend/constants.py index 0063e42c..7cb6e4b1 100644 --- a/frontends/src/quick_frontend/constants.py +++ b/frontends/src/quick_frontend/constants.py @@ -71,4 +71,4 @@ class Const(constants.Const): WIDGET_RAISE = 'RAISE' WIDGET_RECREATE = 'RECREATE' - LISTENERS = {'avatar'} + LISTENERS = {'avatar', 'presence'} diff --git a/frontends/src/quick_frontend/quick_app.py b/frontends/src/quick_frontend/quick_app.py index d7d7c2c4..a9c180d5 100644 --- a/frontends/src/quick_frontend/quick_app.py +++ b/frontends/src/quick_frontend/quick_app.py @@ -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"""