Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

Gateway: a room made with no bridge is internal only

Petr Bauchdd12f4a67998
diff --git a/gateway/src/data/api.ts b/gateway/src/data/api.ts
index 8603e8ec5..63387c932 100644
--- a/gateway/src/data/api.ts
+++ b/gateway/src/data/api.ts
@@ -216,6 +216,9 @@ export interface CreateRoomInput {
join_event_listeners?: string[];
user_names?: string[];
bridge_id?: string | null;
+ // With no bridge_id the server uses the default bridge; this asks for a
+ // room with no external channel instead.
+ internal_only?: boolean;
external_channel_id?: string | null;
group_id?: string | null;
read_visibility?: "public" | "private";
diff --git a/gateway/src/pages/rooms/RoomCreateFormBody.tsx b/gateway/src/pages/rooms/RoomCreateFormBody.tsx
index 80588828b..fb57eb7ab 100644
--- a/gateway/src/pages/rooms/RoomCreateFormBody.tsx
+++ b/gateway/src/pages/rooms/RoomCreateFormBody.tsx
@@ -180,6 +180,7 @@ export default function RoomCreateFormBody() {
})(),
user_names: userNames.length > 0 ? userNames : undefined,
bridge_id: bridgeId || undefined,
+ internal_only: !bridgeId,
external_channel_id: extId,
group_id: groupId || null,
roles: