diff --git a/backend/open_webui/models/channels.py b/backend/open_webui/models/channels.py index 1779e1566..bc36146cf 100644 --- a/backend/open_webui/models/channels.py +++ b/backend/open_webui/models/channels.py @@ -70,6 +70,7 @@ class ChannelTable: channel = ChannelModel( **{ **form_data.model_dump(), + "name": form_data.name.lower(), "id": str(uuid.uuid4()), "user_id": user_id, "created_at": int(time.time_ns()), diff --git a/src/lib/components/channel/Channel.svelte b/src/lib/components/channel/Channel.svelte index dba69a9e0..0b9f5d205 100644 --- a/src/lib/components/channel/Channel.svelte +++ b/src/lib/components/channel/Channel.svelte @@ -2,12 +2,13 @@ import { toast } from 'svelte-sonner'; import { onDestroy, onMount, tick } from 'svelte'; - import { socket } from '$lib/stores'; + import { showSidebar, socket } from '$lib/stores'; import { getChannelById, getChannelMessages, sendMessage } from '$lib/apis/channels'; import Messages from './Messages.svelte'; import MessageInput from './MessageInput.svelte'; import { goto } from '$app/navigation'; + import Navbar from './Navbar.svelte'; export let id = ''; @@ -95,35 +96,42 @@ }); -