Skip to content

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

Merge #7567 (room feed for everyone) into train/nov26-app

milind-sonie2dea8e34533
diff --cc src/components/Composer.tsx
index 5f05d2c790,0e1244fc86..f069716155
--- a/src/components/Composer.tsx
+++ b/src/components/Composer.tsx
@@@ -180,7 -178,7 +180,7 @@@ export function Composer(
draftId,
!group && bot && !state.config?.team ? `bot:${bot.id}` : undefined,
);
- const forkOwnerId = singleRow || group?.dm || !threadId || isNewChatThread(threadId) ? undefined : group?.id ?? bot?.id;
- const forkOwnerId = composerForkOwner({ phone: singleRow, group, botId: bot?.id, threadId, startsThread: Boolean(onSendGroup) });
++ const forkOwnerId = composerForkOwner({ phone: singleRow, group, botId: bot?.id, threadId: threadId && !isNewChatThread(threadId) ? threadId : undefined, startsThread: Boolean(onSendGroup) });
const attachmentPending = useDraftAttachmentPending(draftId);
const failedSends = useFailedComposerSends(draftId); const picks = mentionPicksFor(draftId);
const [channelMode, setChannelMode] = useComposerChannelMode(draftId);
diff --cc src/components/Sidebar.tsx
index 7531f31fd5,adf27ba859..a3e2e55ca0
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@@ -98,10 -98,10 +98,10 @@@ import { useLiveMedia } from "@/lib/liv
import { LiveCallPill, liveBadgeFor } from "./LiveCallPill";
import { ShortcutHint } from "./ShortcutHint";
import { usePopoverDismiss } from "@/hooks/use-popover-dismiss";
- import { useAdvancedMode } from "@/lib/interface-mode"; import { useRoomFeed } from "./room-feed/use-room-feed"; import { feedPreview } from "@/lib/room-feed";
+ import { useAdvancedMode } from "@/lib/interface-mode"; import { useRoomFeed } from "./room-feed/use-room-feed"; import { feedPreview, roomFeedShows } from "@/lib/room-feed";
import { myDefaultBot, useViewerEmail, useWelcomingBot } from "@/lib/default-bot";
import { PinnedBotRoster, PinnedCircleThreadSection } from "./PinnedCircleThreads";
-import { archiveBotWithNotice, onArchiveNotice } from "./bot-archive";
+import { archiveBotWithNotice, onArchiveNotice, type ArchiveNotice } from "./bot-archive";
import { ArchivedBotsPanel, botConfirmProps, type BotConfirmKind } from "./ArchivedBotsPanel"; import { MovedBotRows } from "./MoveToTeam"; import { MovedToMyCloudRow } from "./MoveToMyCloud";
import { NewRoomPanel } from "./SidebarNewRoomPanel";
import { SectionPicker } from "./SidebarSectionPicker";