aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-04-19 02:32:25 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-30 21:11:27 +0200
commitdf0336ae16eff73faea8ecc9e5ee375b558c4e42 (patch)
treeb3244b012e3fc3d6fc48c1f70081064a7477fda4 /wee_slack.py
parent01eb0de76bfbca0f93e6237fc5031ccf07d6778b (diff)
downloadwee-slack-df0336ae16eff73faea8ecc9e5ee375b558c4e42.tar.gz
Don't clear messages before getting the history
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 772a171..50d9917 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1956,9 +1956,6 @@ class SlackChannel(SlackChannelCommon):
def get_history(self, slow_queue=False):
if not self.got_history:
- # we have probably reconnected. flush the buffer
- if self.team.connected:
- self.clear_messages()
w.prnt_date_tags(self.channel_buffer, SlackTS().major,
tag(backlog=True, no_log=True), '\tgetting channel history...')
s = SlackRequest(self.team, self.team.slack_api_translator[self.type]["history"],