diff src/core/xmpp.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 e9634d2e7b38
children 8ee9113d307b
line wrap: on
line diff
--- a/src/core/xmpp.py	Tue Oct 16 01:22:40 2012 +0200
+++ b/src/core/xmpp.py	Wed Oct 17 00:35:48 2012 +0200
@@ -113,7 +113,7 @@
               mess_body = e.children[0] if e.children else ""
               self.host.bridge.newMessage(message["from"], mess_body, mess_type, message['to'], profile=self.parent.profile)
               if not u"delay" in [elem.name for elem in message.elements()]: #we don't save delayed messages in history
-                  self.host.memory.addToHistory(jid.JID(message["from"]), jid.JID(message["to"]), mess_body, profile=self.parent.profile)
+                  self.host.memory.addToHistory(jid.JID(message["from"]), jid.JID(message["to"]), mess_body, mess_type, profile=self.parent.profile)
               break
     
 class SatRosterProtocol(xmppim.RosterClientProtocol):