From 32a6b4dca0217b3ce8066672e019005b0bee607a Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 29 Oct 2023 21:55:10 +0100 Subject: Make /thread work on thread replies Previously running /thread with a message id for a thread reply (or pressing T on the message in cursor mode, which is the same thing) would open a buffer with just the thread reply. Now the thread buffer for the thread the message is in is opened instead. --- wee_slack.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wee_slack.py') diff --git a/wee_slack.py b/wee_slack.py index 73723b9..ca1ab3e 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3584,6 +3584,9 @@ class SlackThreadMessage(SlackMessage): def parent_message(self): return self.parent_channel.messages.get(self.thread_ts) + def open_thread(self, switch=False): + self.parent_message.open_thread(switch) + class Hdata(object): def __init__(self, w): -- cgit