fix(slack): preserve thread context in auto-replies
When replying to a message in a Slack thread, the response now stays in the thread instead of going to the channel root. Only threads replies when the incoming message was already in a thread (has thread_ts). Top-level messages get top-level replies. Fixes #250
This commit is contained in:
committed by
Peter Steinberger
parent
7b343f995c
commit
7034d4f807
@@ -738,7 +738,6 @@ export async function monitorSlackProvider(opts: MonitorSlackOpts = {}) {
|
|||||||
|
|
||||||
// Only thread replies if the incoming message was in a thread.
|
// Only thread replies if the incoming message was in a thread.
|
||||||
const incomingThreadTs = message.thread_ts;
|
const incomingThreadTs = message.thread_ts;
|
||||||
|
|
||||||
const dispatcher = createReplyDispatcher({
|
const dispatcher = createReplyDispatcher({
|
||||||
responsePrefix: cfg.messages?.responsePrefix,
|
responsePrefix: cfg.messages?.responsePrefix,
|
||||||
deliver: async (payload) => {
|
deliver: async (payload) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user