Fix call to fetchThreadList

Use "self" instead of "client"
This commit is contained in:
2FWAH
2018-06-01 23:06:02 +02:00
committed by GitHub
parent 487a2eb3e3
commit 19457efe9b

View File

@@ -488,7 +488,7 @@ class Client(object):
return [] return []
while True: while True:
lastThreadTimestamp = Threads[-1].last_message_timestamp lastThreadTimestamp = Threads[-1].last_message_timestamp
candidates = client.fetchThreadList(before=lastThreadTimestamp, thread_location=thread_location) # return at max 20 threads before lastThreadTimestamp (included) candidates = self.fetchThreadList(before=lastThreadTimestamp, thread_location=thread_location) # return at max 20 threads before lastThreadTimestamp (included)
if len(candidates) > 1: if len(candidates) > 1:
Threads += candidates[1:] Threads += candidates[1:]
else: else: