chore: remove redundant comments
This commit is contained in:
parent
0548b47365
commit
86ab5008c6
@ -228,7 +228,6 @@ export async function runPreparedReply(
|
|||||||
});
|
});
|
||||||
const threadStarterBody = ctx.ThreadStarterBody?.trim();
|
const threadStarterBody = ctx.ThreadStarterBody?.trim();
|
||||||
const threadHistoryBody = ctx.ThreadHistoryBody?.trim();
|
const threadHistoryBody = ctx.ThreadHistoryBody?.trim();
|
||||||
// If we have full thread history, use it instead of just the starter
|
|
||||||
const threadContextNote =
|
const threadContextNote =
|
||||||
isNewSession && threadHistoryBody
|
isNewSession && threadHistoryBody
|
||||||
? `[Thread history - for context]\n${threadHistoryBody}`
|
? `[Thread history - for context]\n${threadHistoryBody}`
|
||||||
|
|||||||
@ -160,7 +160,6 @@ export async function resolveSlackThreadHistory(params: {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const messages = response?.messages ?? [];
|
const messages = response?.messages ?? [];
|
||||||
// Filter out the current message and empty messages
|
|
||||||
return messages
|
return messages
|
||||||
.filter((msg) => {
|
.filter((msg) => {
|
||||||
if (!msg.text?.trim()) return false;
|
if (!msg.text?.trim()) return false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user