comparison frontends/src/quick_frontend/quick_app.py @ 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
parents 378af36155c2
children bfabeedbf32e
comparison
equal deleted inserted replaced
766:6c36149524ed 767:318acc83a392
302 return 302 return
303 303
304 debug(_("presence update for %(jid)s (show=%(show)s, priority=%(priority)s, statuses=%(statuses)s) [profile:%(profile)s]") 304 debug(_("presence update for %(jid)s (show=%(show)s, priority=%(priority)s, statuses=%(statuses)s) [profile:%(profile)s]")
305 % {'jid': jabber_id, 'show': show, 'priority': priority, 'statuses': statuses, 'profile': profile}) 305 % {'jid': jabber_id, 'show': show, 'priority': priority, 'statuses': statuses, 'profile': profile})
306 from_jid = JID(jabber_id) 306 from_jid = JID(jabber_id)
307 debug("from_jid.bare=%(from_jid)s whoami.bare=%(whoami)s" % {'from_jid': from_jid.bare, 'whoami': self.profiles[profile]['whoami'].bare}) 307
308 308 if from_jid == self.profiles[profile]['whoami']:
309 if from_jid.bare == self.profiles[profile]['whoami'].bare:
310 if show == "unavailable": 309 if show == "unavailable":
311 self.setStatusOnline(False) 310 self.setStatusOnline(False)
312 else: 311 else:
313 self.setStatusOnline(True, show, statuses) 312 self.setStatusOnline(True, show, statuses)
314 return 313 return