Disable alerts on logout

This commit is contained in:
Jon Staab
2026-01-26 10:08:43 -08:00
parent 646b8f8736
commit 9b3a8258ce
8 changed files with 52 additions and 71 deletions
-1
View File
@@ -1,7 +1,6 @@
<script lang="ts">
import "@src/app.css"
import "@capacitor-community/safe-area"
import {PushNotifications} from "@capacitor/push-notifications"
import * as nip19 from "nostr-tools/nip19"
import type {Unsubscriber} from "svelte/store"
import {get} from "svelte/store"
+5 -16
View File
@@ -79,10 +79,7 @@
{#if isSupported}
<div class="flex justify-between">
<p>Show badge for unread alerts</p>
<input
type="checkbox"
class="toggle toggle-primary"
bind:checked={settings.badge} />
<input type="checkbox" class="toggle toggle-primary" bind:checked={settings.badge} />
</div>
{/if}
{/await}
@@ -94,16 +91,12 @@
{/if}
<div class="flex justify-between">
<p>Enable push notifications</p>
<input
type="checkbox"
class="toggle toggle-primary"
bind:checked={settings.push} />
<input type="checkbox" class="toggle toggle-primary" bind:checked={settings.push} />
</div>
</div>
<div
class={cx("card2 bg-alt col-4 shadow-md", {
"pointer-events-none opacity-50":
!settings.badge && !settings.sound && !settings.push,
"pointer-events-none opacity-50": !settings.badge && !settings.sound && !settings.push,
})}>
<strong class="text-lg">Alert Types</strong>
<div class="flex justify-between">
@@ -116,16 +109,12 @@
</div>
<div class="flex justify-between">
<p>Notify me about new messages</p>
<input
type="checkbox"
class="toggle toggle-primary"
bind:checked={settings.messages} />
<input type="checkbox" class="toggle toggle-primary" bind:checked={settings.messages} />
</div>
</div>
<div
class={cx("card2 bg-alt col-4 shadow-md", {
"pointer-events-none opacity-50":
!settings.badge && !settings.sound && !settings.push,
"pointer-events-none opacity-50": !settings.badge && !settings.sound && !settings.push,
})}>
<strong class="text-lg">Muted Rooms</strong>
{#each muted_rooms as id (id)}