From 0c9147a6ec8f1d6412599cd48a156dcd738474b5 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 3 Nov 2026 19:04:45 +0100 Subject: [PATCH] feat: search messages inside a channel from its header Channels had no way to search their own messages short of opening the global search and picking the channel by hand. The channel header now has a search button that opens the search window already limited to that channel and to messages. Clicking a result opens the message in its thread and highlights it, using the same jump the global search already uses. --- src/lib/components/channel/Navbar.svelte | 19 ++++++++++++++++++- src/lib/components/layout/SearchModal.svelte | 12 +++++++++++- src/lib/stores/index.ts | 2 ++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/src/lib/components/channel/Navbar.svelte b/src/lib/components/channel/Navbar.svelte index fc4d7c01f0..a4ba21bc1d 100644 --- a/src/lib/components/channel/Navbar.svelte +++ b/src/lib/components/channel/Navbar.svelte @@ -2,7 +2,7 @@ import { getContext } from 'svelte'; import { toast } from 'svelte-sonner'; - import { mobile, showSidebar, user } from '$lib/stores'; + import { mobile, searchPreset, showSearch, showSidebar, user } from '$lib/stores'; import { slide } from 'svelte/transition'; import { page } from '$app/stores'; @@ -18,6 +18,7 @@ import ChannelInfoModal from './ChannelInfoModal.svelte'; import Users from '../icons/Users.svelte'; import Pin from '../icons/Pin.svelte'; + import Search from '../icons/Search.svelte'; import PinnedMessagesModal from './PinnedMessagesModal.svelte'; import ChannelMenu from './ChannelMenu.svelte'; @@ -162,6 +163,22 @@ > {#if channel} + + + +