aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorAshish Kulkarni <ashish@kulkarni.dev>2020-11-26 12:01:18 +0530
committerTrygve Aaberge <trygveaa@gmail.com>2021-02-20 16:08:17 +0100
commitc345e49bc066d2960638d7f7776789ddf0b8ee4a (patch)
tree8600ffdcd6de2798ffb3264beba5b65f28ae3899 /wee_slack.py
parente626714a1acdc13fd711869b879e2db7aa75ace8 (diff)
downloadwee-slack-c345e49bc066d2960638d7f7776789ddf0b8ee4a.tar.gz
allow new threads to be opened via /thread <THREADID>
This was broken in #774 as it checked if there was at least one reply, which is not the case for new threads.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 77e14ce..215c31d 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4588,8 +4588,7 @@ def command_thread(data, current_buffer, args):
print_error('/thread can not be used in the team buffer, only in a channel')
return w.WEECHAT_RC_ERROR
- message_filter = lambda message: message.number_of_replies()
- message = channel.message_from_hash_or_index(args, message_filter)
+ message = channel.message_from_hash_or_index(args)
if message:
message.open_thread(switch=config.switch_buffer_on_join)