aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-10-29 21:55:10 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2023-10-29 21:56:38 +0100
commit32a6b4dca0217b3ce8066672e019005b0bee607a (patch)
treec2f6aebe7786fc557b0fc27b90f25a648ef8e152 /wee_slack.py
parent6b388cd9aea6b091e16bdd22d0a28d9f1931b284 (diff)
downloadwee-slack-32a6b4dca0217b3ce8066672e019005b0bee607a.tar.gz
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.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 3 insertions, 0 deletions
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):