Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Accept a missing bot as null, as the store returns it

Bugfixer 228270a85c1b2
diff --git a/server/tagged-answer.ts b/server/tagged-answer.ts
index 282c468d71..1e016b365e 100644
--- a/server/tagged-answer.ts
+++ b/server/tagged-answer.ts
@@ -11,7 +11,7 @@ import { redactSecretsInText } from "./redact.ts";
export function taggedAnswerRow(
child: Pick<HandoffView, "id" | "botId" | "mode" | "status" | "result">,
parent: Pick<HandoffView, "botId" | "groupId" | "parentId">,
- bot: Pick<WireBot, "id" | "name" | "color"> | undefined,
+ bot: Pick<WireBot, "id" | "name" | "color"> | null | undefined,
tagged: (botId: string) => boolean,
): Omit<Message, "id" | "at"> | null {
if (!bot || parent.groupId || parent.parentId || child.botId === parent.botId || child.mode !== "consult" || child.status !== "completed") return null;