comparison frontends/src/primitivus/contact_list.py @ 1377:017270e6eea4

quick_frontends, primitivus: know who are the MUC occupants from the presence informations: - QuickChat.occupants is now a property using cached information - some MUC handlers are no more needed, the presence handler is enough
author souliane <souliane@mailoo.org>
date Fri, 20 Mar 2015 16:25:38 +0100
parents 1679ac59f701
children 3511ff4b40a0
comparison
equal deleted inserted replaced
1376:28fd9e838f8f 1377:017270e6eea4
146 self._alerts.discard(entity) 146 self._alerts.discard(entity)
147 self.host.modeHint(C.MODE_INSERTION) 147 self.host.modeHint(C.MODE_INSERTION)
148 self.update() 148 self.update()
149 self._emit('click', entity) 149 self._emit('click', entity)
150 150
151 def onPresenceUpdate(self, entity, show, priority, statuses, profile):
152 super(ContactList, self).onPresenceUpdate(entity, show, priority, statuses, profile)
153 self.update()
154
155 def onNickUpdate(self, entity, new_nick, profile): 151 def onNickUpdate(self, entity, new_nick, profile):
156 self.update() 152 self.update()
157 153
158 # Methods to build the widget 154 # Methods to build the widget
159 155