diff src/core/sat_main.py @ 512:862c0d6ab974

core, bridge, quick_frontend: MUC private messages history management: - history now store message type - sqlite3 storage: fixed resource management in getHistory - bridge: added message type in getHistory return value - quick_chats: (ugly) hacks to manage private history filtering/nickname printing
author Goffi <goffi@goffi.org>
date Wed, 17 Oct 2012 00:35:48 +0200
parents 2e43c74815ad
children 8ee9113d307b
line wrap: on
line diff
--- a/src/core/sat_main.py	Tue Oct 16 01:22:40 2012 +0200
+++ b/src/core/sat_main.py	Wed Oct 17 00:35:48 2012 +0200
@@ -499,7 +499,7 @@
         message.addElement("body", "jabber:client", mess_data["message"])
         client.xmlstream.send(message)
         if mess_data["type"]!="groupchat":
-            self.memory.addToHistory(current_jid, jid.JID(to), unicode(mess_data["message"]), profile=profile) #we don't add groupchat message to history, as we get them back
+            self.memory.addToHistory(current_jid, jid.JID(to), unicode(mess_data["message"]), unicode(mess_data["type"]), profile=profile) #we don't add groupchat message to history, as we get them back
                                                                                               #and they will be added then
             self.bridge.newMessage(message['from'], unicode(mess_data["message"]), mess_type=mess_data["type"], to_jid=message['to'], profile=profile) #We send back the message, so all clients are aware of it