aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wee_slack.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 4bdb305..e9ced91 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -817,10 +817,7 @@ class Channel(object):
if self.active:
for message in message_cache[self.identifier]:
process_message(json.loads(message), True)
- if self.last_received is not None:
- async_slack_api_request(self.server.domain, self.server.token, SLACK_API_TRANSLATOR[self.type]["history"], {"channel": self.identifier, "oldest": self.last_received, "count": BACKLOG_SIZE})
- else:
- async_slack_api_request(self.server.domain, self.server.token, SLACK_API_TRANSLATOR[self.type]["history"], {"channel": self.identifier, "count": BACKLOG_SIZE})
+ async_slack_api_request(self.server.domain, self.server.token, SLACK_API_TRANSLATOR[self.type]["history"], {"channel": self.identifier, "count": BACKLOG_SIZE})
self.got_history = True