aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 82a91b4..3dd10cc 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -4075,7 +4075,10 @@ def command_reply(data, current_buffer, args):
msg = get_msg_from_id(channel, msg_id)
if msg:
- parent_id = str(msg.ts)
+ if isinstance(msg, SlackThreadMessage):
+ parent_id = str(msg.parent_message.ts)
+ else:
+ parent_id = str(msg.ts)
elif msg_id.isdigit() and int(msg_id) >= 1:
mkeys = channel.main_message_keys_reversed()
parent_id = str(next(islice(mkeys, int(msg_id) - 1, None)))