diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-01-24 12:41:25 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-01-24 12:41:25 -0800 |
commit | 69ab4fb28e07076ebcde1d42553d839cd19c4c9e (patch) | |
tree | f98f6b4f1f4248a44a97dbf830ccd5e2072b7abc /wee_slack.py | |
parent | 4923f6c2d05d7db0263650a23e100aa75134e11a (diff) | |
download | wee-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.py | 5 |
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 |