comparison frontends/src/primitivus/primitivus @ 1000:6f1e03068b5f

primitivus: fixes contact group update
author souliane <souliane@mailoo.org>
date Sun, 27 Apr 2014 18:22:12 +0200
parents 3a96920c07b7
children 73a0b7f94674
comparison
equal deleted inserted replaced
999:c37a24922f27 1000:6f1e03068b5f
386 QuickApp.newMessage(self, from_jid, to_jid, msg, _type, extra, profile) 386 QuickApp.newMessage(self, from_jid, to_jid, msg, _type, extra, profile)
387 387
388 if not from_jid in self.contact_list and from_jid.bare != self.profiles[profile]['whoami'].bare: 388 if not from_jid in self.contact_list and from_jid.bare != self.profiles[profile]['whoami'].bare:
389 #XXX: needed to show entities which haven't sent any 389 #XXX: needed to show entities which haven't sent any
390 # presence information and which are not in roster 390 # presence information and which are not in roster
391 #TODO: put these entities in a "not in roster" list 391 self.contact_list.replace(from_jid, ['Not in roster'])
392 self.contact_list.replace(from_jid)
393 392
394 if JID(self.contact_list.selected).bare != from_jid.bare: 393 if JID(self.contact_list.selected).bare != from_jid.bare:
395 self.contact_list.putAlert(from_jid) 394 self.contact_list.putAlert(from_jid)
396 395
397 def _dialogOkCb(self, widget, data): 396 def _dialogOkCb(self, widget, data):