quick_frontend: fix presence/status update (do not share between different resources)
This commit is contained in:
parent
0f2ba87b59
commit
74fc11535c
1 changed files with 1 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue