diff options
-rw-r--r-- | wee_slack.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index 1b9e67b..4ad843d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -4480,8 +4480,9 @@ def subscribe_helper(current_buffer, args, usage, api): print_message_not_found_error(args) return w.WEECHAT_RC_OK_EAT - s = SlackRequest(team, api, - {"channel": channel.identifier, "thread_ts": message.ts}, channel=channel) + last_read = next(reversed(message.submessages), message.ts) + post_data = {"channel": channel.identifier, "thread_ts": message.ts, "last_read": last_read} + s = SlackRequest(team, api, post_data, channel=channel) EVENTROUTER.receive(s) return w.WEECHAT_RC_OK_EAT |