aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-01-24 12:41:25 -0800
committerRyan Huber <rhuber@gmail.com>2017-01-24 12:41:25 -0800
commit69ab4fb28e07076ebcde1d42553d839cd19c4c9e (patch)
treef98f6b4f1f4248a44a97dbf830ccd5e2072b7abc /wee_slack.py
parent4923f6c2d05d7db0263650a23e100aa75134e11a (diff)
downloadwee-slack-69ab4fb28e07076ebcde1d42553d839cd19c4c9e.tar.gz
don't care about last message anymore. load all history
Diffstat (limited to 'wee_slack.py')
-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