diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-01-26 10:36:21 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-01-26 10:36:21 -0800 |
commit | 85ca2dd820d64d1ce717ba44338f6dc26fe9e886 (patch) | |
tree | d5fb16fed110d295d20ee8d7efdc64ec9957b607 | |
parent | 39f2ab259b8e9f3f3d5e04897f37eeb83404736f (diff) | |
download | wee-slack-85ca2dd820d64d1ce717ba44338f6dc26fe9e886.tar.gz |
messages received during reconnect are missed w/o this
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 41dd7bb..73b0d79 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -280,6 +280,9 @@ class SlackServer(object): else: self.message_buffer.pop(message_id) for chan in self.channels: + # Set channel history back to false because we will miss messages that came + # while we were disconnected otherwise. + chan.got_history = False if chan.channel_buffer and chan.muted: w.buffer_set(chan.channel_buffer, "hotlist", "-1") return True |