diff options
author | Eric Wang <ericwang@tuta.io> | 2019-01-26 02:20:20 -0800 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-01-26 11:20:20 +0100 |
commit | 4b7a6424054f2378c8db44fcc028d48f763c2d3f (patch) | |
tree | 17db5db7554fde0cec4c82ca6967d8daddb38d7a /wee_slack.py | |
parent | 6f23cff825da2d0ea62b164726e36be77b3d287b (diff) | |
download | wee-slack-4b7a6424054f2378c8db44fcc028d48f763c2d3f.tar.gz |
Include threads when marking latest message as read (#653)
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index d088da0..3026198 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1703,7 +1703,7 @@ class SlackChannel(SlackChannelCommon): w.buffer_set(self.channel_buffer, "unread", "") w.buffer_set(self.channel_buffer, "hotlist", "-1") if not ts: - ts = next(self.main_message_keys_reversed(), SlackTS()) + ts = next(reversed(self.messages), SlackTS()) if ts > self.last_read: self.last_read = ts if update_remote: |