aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorEric Wang <ericwang@tuta.io>2019-01-26 02:20:20 -0800
committerTrygve Aaberge <trygveaa@gmail.com>2019-01-26 11:20:20 +0100
commit4b7a6424054f2378c8db44fcc028d48f763c2d3f (patch)
tree17db5db7554fde0cec4c82ca6967d8daddb38d7a /wee_slack.py
parent6f23cff825da2d0ea62b164726e36be77b3d287b (diff)
downloadwee-slack-4b7a6424054f2378c8db44fcc028d48f763c2d3f.tar.gz
Include threads when marking latest message as read (#653)
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
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: