comparison frontends/src/quick_frontend/quick_app.py @ 502:debcf5dd404a

QuickFrontend, Primitivus, Wix: special entities management: - MUC rooms are special entities - Primitivus: special entities are shown at the top of the contacts list above a divider, presence updates are temporary ignored for them
author Goffi <goffi@goffi.org>
date Tue, 25 Sep 2012 23:10:22 +0200
parents e9634d2e7b38
children 10119c2a9d33
comparison
equal deleted inserted replaced
501:e9634d2e7b38 502:debcf5dd404a
283 debug (_("Room [%(room_jid)s] joined by %(profile)s, users presents:%(users)s") % {'room_jid':room_jid, 'profile': profile, 'users':room_nicks}) 283 debug (_("Room [%(room_jid)s] joined by %(profile)s, users presents:%(users)s") % {'room_jid':room_jid, 'profile': profile, 'users':room_nicks})
284 self.chat_wins[room_jid].setUserNick(user_nick) 284 self.chat_wins[room_jid].setUserNick(user_nick)
285 self.chat_wins[room_jid].setType("group") 285 self.chat_wins[room_jid].setType("group")
286 self.chat_wins[room_jid].id = room_jid 286 self.chat_wins[room_jid].id = room_jid
287 self.chat_wins[room_jid].setPresents(list(set([user_nick]+room_nicks))) 287 self.chat_wins[room_jid].setPresents(list(set([user_nick]+room_nicks)))
288 self.contact_list.setSpecial(JID(room_jid), "MUC")
288 289
289 290
290 def roomUserJoined(self, room_jid, user_nick, user_data, profile): 291 def roomUserJoined(self, room_jid, user_nick, user_data, profile):
291 """Called when an user joined a MUC room""" 292 """Called when an user joined a MUC room"""
292 if not self.check_profile(profile): 293 if not self.check_profile(profile):