From 19457efe9bb95e969a53475424e7ff940a98cb09 Mon Sep 17 00:00:00 2001 From: 2FWAH <36737818+2FWAH@users.noreply.github.com> Date: Fri, 1 Jun 2018 23:06:02 +0200 Subject: [PATCH] Fix call to fetchThreadList Use "self" instead of "client" --- fbchat/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbchat/client.py b/fbchat/client.py index 7930b2d..581413b 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -488,7 +488,7 @@ class Client(object): return [] while True: 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: Threads += candidates[1:] else: