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
This commit is contained in:
parent
d5fac19b9e
commit
fef2b1a620
1 changed files with 52 additions and 30 deletions
|
|
@ -113,7 +113,7 @@ class SatMessageProtocol(xmppim.MessageProtocol):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue