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:
Goffi 2012-10-17 00:35:48 +02:00
commit fef2b1a620

View file

@ -60,7 +60,7 @@ class FakeMemory(object):
def getProfileName(self, profile_key):
return profile_key
def addToHistory(self, from_jid, to_jid, message, timestamp=None, profile=None):
def addToHistory(self, from_jid, to_jid, message, _type='chat', timestamp=None, profile=None):
pass
def addContact(self, contact_jid, attributes, groups, profile_key='@DEFAULT@'):