Fix some notification related bugs

This commit is contained in:
Jon Staab
2026-02-02 14:29:12 -08:00
parent 75ec7688b1
commit 764719afde
5 changed files with 23 additions and 22 deletions
+5 -5
View File
@@ -32,7 +32,7 @@
deriveUserIsRoomAdmin,
deriveUserRoomMembershipStatus,
deriveUserRooms,
deriveIsMuted,
deriveShouldNotify,
MembershipStatus,
} from "@app/core/state"
import {
@@ -58,7 +58,7 @@
const userRooms = deriveUserRooms(url)
const isFavorite = $derived($userRooms.includes(h))
const isMuted = deriveIsMuted(url, h)
const shouldNotify = deriveShouldNotify(url, h)
const back = () => history.back()
@@ -92,7 +92,7 @@
}
}
const toggleMute = () => {
const toggleShouldNotify = () => {
toggleRoomNotifications(url, h)
}
@@ -182,8 +182,8 @@
<input
type="checkbox"
class="toggle toggle-primary"
checked={!isMuted}
onchange={toggleMute} />
checked={$shouldNotify}
onchange={toggleShouldNotify} />
</div>
<div class="flex items-center justify-between">
<div class="flex items-center gap-2">