Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_app.py @ 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 | 066308706dc6 |
children | aa15453ec54d |
comparison
equal
deleted
inserted
replaced
1057:7ea0215e7092 | 1058:0a9986452bba |
---|---|
267 if from_me: | 267 if from_me: |
268 to_jid = new_jid | 268 to_jid = new_jid |
269 else: | 269 else: |
270 from_jid = new_jid | 270 from_jid = new_jid |
271 if new_jid not in self.contact_list: | 271 if new_jid not in self.contact_list: |
272 self.contact_list.add(new_jid) | 272 self.contact_list.add(new_jid, [C.GROUP_NOT_IN_ROSTER]) |
273 | 273 |
274 self.newMessage(from_jid, to_jid, msg, _type, extra, profile) | 274 self.newMessage(from_jid, to_jid, msg, _type, extra, profile) |
275 | 275 |
276 def newMessage(self, from_jid, to_jid, msg, _type, extra, profile): | 276 def newMessage(self, from_jid, to_jid, msg, _type, extra, profile): |
277 from_me = from_jid.bare == self.profiles[profile]['whoami'].bare | 277 from_me = from_jid.bare == self.profiles[profile]['whoami'].bare |