memory: getHistory with limit=0 now returns an empty list, use limit=None to return all messages
This commit is contained in:
parent
ac59d061f4
commit
4c61bf8fad
2 changed files with 6 additions and 4 deletions
|
|
@ -350,7 +350,7 @@ class Memory(object):
|
|||
extra = {}
|
||||
return self.storage.addToHistory(from_jid, to_jid, message, type_, extra, timestamp, profile)
|
||||
|
||||
def getHistory(self, from_jid, to_jid, limit=0, between=True, profile=C.PROF_KEY_NONE):
|
||||
def getHistory(self, from_jid, to_jid, limit=None, between=True, profile=C.PROF_KEY_NONE):
|
||||
assert profile != C.PROF_KEY_NONE
|
||||
return self.storage.getHistory(jid.JID(from_jid), jid.JID(to_jid), limit, between, profile)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue