mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 20:41:24 +00:00
fix(discord): replyToMode first behaviour
This commit is contained in:
@@ -89,8 +89,11 @@ function createSlackReplyReferencePlanner(params: {
|
||||
messageTs: string | undefined;
|
||||
hasReplied?: boolean;
|
||||
}) {
|
||||
// When already inside a Slack thread, always stay in it regardless of
|
||||
// replyToMode — thread_ts is required to keep messages in the thread.
|
||||
const effectiveMode = params.incomingThreadTs ? "all" : params.replyToMode;
|
||||
return createReplyReferencePlanner({
|
||||
replyToMode: params.replyToMode,
|
||||
replyToMode: effectiveMode,
|
||||
existingId: params.incomingThreadTs,
|
||||
startId: params.messageTs,
|
||||
hasReplied: params.hasReplied,
|
||||
|
||||
Reference in New Issue
Block a user