quick_frontend: fix presence/status update (do not share between different resources)

This commit is contained in:
souliane 2013-12-18 09:55:02 +01:00
commit 74fc11535c

View file

@ -304,9 +304,8 @@ class QuickApp(object):
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: