diff 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
line wrap: on
line diff
--- a/src/core/xmpp.py	Mon Nov 07 22:27:07 2011 +0100
+++ b/src/core/xmpp.py	Tue Nov 08 01:08:11 2011 +0100
@@ -110,7 +110,7 @@
         if e.name == "body":
           mess_type = message['type'] if message.hasAttribute('type') else 'normal'
           self.host.bridge.newMessage(message["from"], e.children[0], mess_type, message['to'], profile=self.parent.profile)
-          self.host.memory.addToHistory(self.parent.jid, jid.JID(message["from"]), self.parent.jid, "chat", e.children[0])
+          self.host.memory.addToHistory(jid.JID(message["from"]), jid.JID(message["to"]), e.children[0], profile=self.parent.profile)
           break
     
 class SatRosterProtocol(xmppim.RosterClientProtocol):