changeset 767:318acc83a392

quick_frontend: fix presence/status update (do not share between different resources)
author souliane <souliane@mailoo.org>
date Wed, 18 Dec 2013 09:55:02 +0100 (2013-12-18)
parents 6c36149524ed
children e1c64a5b4588
files frontends/src/quick_frontend/quick_app.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Wed Dec 18 07:44:35 2013 +0100
+++ b/frontends/src/quick_frontend/quick_app.py	Wed Dec 18 09:55:02 2013 +0100
@@ -304,9 +304,8 @@
         debug(_("presence update for %(jid)s (show=%(show)s, priority=%(priority)s, statuses=%(statuses)s) [profile:%(profile)s]")
               % {'jid': jabber_id, 'show': show, 'priority': priority, 'statuses': statuses, 'profile': profile})
         from_jid = JID(jabber_id)
-        debug("from_jid.bare=%(from_jid)s whoami.bare=%(whoami)s" % {'from_jid': from_jid.bare, 'whoami': self.profiles[profile]['whoami'].bare})
 
-        if from_jid.bare == self.profiles[profile]['whoami'].bare:
+        if from_jid == self.profiles[profile]['whoami']:
             if show == "unavailable":
                 self.setStatusOnline(False)
             else: