comparison sat_frontends/quick_frontend/quick_app.py @ 2582:2e6864b1d577

quick frontend (contact list): don't store "nick" for group contacts: plugin XEP-0054 may associate a "nick" with a bare jid, which in case of MUC can cause trouble (Primitivus for instance will use the nick instead of the name of the room). This hack avoid this issue for now.
author Goffi <goffi@goffi.org>
date Fri, 11 May 2018 17:13:58 +0200
parents 26edcf3a30eb
children 57c8c155192f
comparison
equal deleted inserted replaced
2581:395a3d1c2888 2582:2e6864b1d577
568 568
569 def setPresenceStatus(self, show='', status=None, profile=C.PROF_KEY_NONE): 569 def setPresenceStatus(self, show='', status=None, profile=C.PROF_KEY_NONE):
570 raise NotImplementedError 570 raise NotImplementedError
571 571
572 def presenceUpdateHandler(self, entity_s, show, priority, statuses, profile): 572 def presenceUpdateHandler(self, entity_s, show, priority, statuses, profile):
573
574 log.debug(_(u"presence update for %(entity)s (show=%(show)s, priority=%(priority)s, statuses=%(statuses)s) [profile:%(profile)s]") 573 log.debug(_(u"presence update for %(entity)s (show=%(show)s, priority=%(priority)s, statuses=%(statuses)s) [profile:%(profile)s]")
575 % {'entity': entity_s, C.PRESENCE_SHOW: show, C.PRESENCE_PRIORITY: priority, C.PRESENCE_STATUSES: statuses, 'profile': profile}) 574 % {'entity': entity_s, C.PRESENCE_SHOW: show, C.PRESENCE_PRIORITY: priority, C.PRESENCE_STATUSES: statuses, 'profile': profile})
576 entity = jid.JID(entity_s) 575 entity = jid.JID(entity_s)
577 576
578 if entity == self.profiles[profile].whoami: 577 if entity == self.profiles[profile].whoami: