From 4b7a6424054f2378c8db44fcc028d48f763c2d3f Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Sat, 26 Jan 2019 02:20:20 -0800 Subject: Include threads when marking latest message as read (#653) --- wee_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wee_slack.py') 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: -- cgit