comparison frontends/src/primitivus/primitivus @ 1058:0a9986452bba

frontends: fixes bug with private message introduced with revision 1000 (6f1e03068b5f) + display messages from contacts not in roster
author souliane <souliane@mailoo.org>
date Thu, 29 May 2014 14:34:01 +0200
parents 5197600a1e13
children b2b9c184033f
comparison
equal deleted inserted replaced
1057:7ea0215e7092 1058:0a9986452bba
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 self.contact_list.replace(from_jid, ['Not in roster']) 391 self.contact_list.replace(from_jid, [C.GROUP_NOT_IN_ROSTER])
392 392
393 if JID(self.contact_list.selected).bare != from_jid.bare: 393 if JID(self.contact_list.selected).bare != from_jid.bare:
394 self.contact_list.putAlert(from_jid) 394 self.contact_list.putAlert(from_jid)
395 395
396 def _dialogOkCb(self, widget, data): 396 def _dialogOkCb(self, widget, data):