diff src/core/sat_main.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 6c20c76abdcc
children bb0236633da5
line wrap: on
line diff
--- a/src/core/sat_main.py	Mon Nov 07 22:27:07 2011 +0100
+++ b/src/core/sat_main.py	Tue Nov 08 01:08:11 2011 +0100
@@ -438,7 +438,7 @@
             message.addElement("subject", "jabber:client", subject)
         message.addElement("body", "jabber:client", msg)
         self.profiles[profile].xmlstream.send(message)
-        self.memory.addToHistory(current_jid, current_jid, jid.JID(to), message["type"], unicode(msg))
+        self.memory.addToHistory(current_jid, jid.JID(to), unicode(msg), profile=profile)
         if type!="groupchat":
             self.bridge.newMessage(message['from'], unicode(msg), mess_type=type, to_jid=message['to'], profile=profile) #We send back the message, so all clients are aware of it