fix(app): tell the user when a search query has nothing to search (#1901)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-24 12:42:20 +02:00
1 parent bb34c73069
commit b71ced9b2e
8 files changed
+303 -136

No files matched your search

@@ -260,9 +260,6 @@ export const ChannelHeader = observer(
);
const handleSearchSubmit = useCallback(() => {
const query = latestSearchQueryRef.current;
if (!query.trim()) {
return;
}
if (onSearchSubmit) {
onSearchSubmit(query, latestSearchSegmentsRef.current);
return;