Mercurial > libervia-backend
comparison src/core/xmpp.py @ 425:e4e9187e3b5b
backend, bridge: asynchronous history
quick_frontend: use of asynchronous history
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 08 Nov 2011 01:08:11 +0100 |
parents | 32dc8b18c2ae |
children | ae446194c20c |
comparison
equal
deleted
inserted
replaced
424:72c13313b6d6 | 425:e4e9187e3b5b |
---|---|
108 return | 108 return |
109 for e in message.elements(): | 109 for e in message.elements(): |
110 if e.name == "body": | 110 if e.name == "body": |
111 mess_type = message['type'] if message.hasAttribute('type') else 'normal' | 111 mess_type = message['type'] if message.hasAttribute('type') else 'normal' |
112 self.host.bridge.newMessage(message["from"], e.children[0], mess_type, message['to'], profile=self.parent.profile) | 112 self.host.bridge.newMessage(message["from"], e.children[0], mess_type, message['to'], profile=self.parent.profile) |
113 self.host.memory.addToHistory(self.parent.jid, jid.JID(message["from"]), self.parent.jid, "chat", e.children[0]) | 113 self.host.memory.addToHistory(jid.JID(message["from"]), jid.JID(message["to"]), e.children[0], profile=self.parent.profile) |
114 break | 114 break |
115 | 115 |
116 class SatRosterProtocol(xmppim.RosterClientProtocol): | 116 class SatRosterProtocol(xmppim.RosterClientProtocol): |
117 | 117 |
118 def __init__(self, host): | 118 def __init__(self, host): |