diff --git a/src/app/components/ChatMenuMobile.svelte b/src/app/components/ChatMenuMobile.svelte new file mode 100644 index 0000000..15d7f6a --- /dev/null +++ b/src/app/components/ChatMenuMobile.svelte @@ -0,0 +1,25 @@ + + +
+ + +
diff --git a/src/app/notifications.ts b/src/app/notifications.ts index 78b3ea7..f9d7066 100644 --- a/src/app/notifications.ts +++ b/src/app/notifications.ts @@ -36,7 +36,10 @@ export const notifications = derived( } for (const [entryPath, ts] of Object.entries($checked)) { - const isMatch = entryPath === "*" || entryPath.startsWith(path) + const isMatch = + entryPath === "*" || + entryPath.startsWith(path) || + (entryPath === "/chat/*" && path.startsWith("/chat/")) if (isMatch && ts > latestEvent.created_at) { return false diff --git a/src/routes/chat/+page.svelte b/src/routes/chat/+page.svelte index 7482659..2b3c209 100644 --- a/src/routes/chat/+page.svelte +++ b/src/routes/chat/+page.svelte @@ -6,6 +6,7 @@ import ContentSearch from "@lib/components/ContentSearch.svelte" import ChatItem from "@app/components/ChatItem.svelte" import ChatStart from "@app/components/ChatStart.svelte" + import ChatMenuMobile from "@app/components/ChatMenuMobile.svelte" import {chatSearch} from "@app/state" import {pushModal} from "@app/modal" import {setChecked} from "@app/notifications" @@ -14,6 +15,8 @@ const startChat = () => pushModal(ChatStart) + const openMenu = () => pushModal(ChatMenuMobile) + $: chats = $chatSearch.searchOptions(term).filter(c => c.pubkeys.length > 1) onDestroy(() => { @@ -41,8 +44,8 @@ -