Fix a few bugs with push notifications

This commit is contained in:
Jon Staab
2026-01-28 14:08:15 -08:00
parent 000344a942
commit d4378731ae
4 changed files with 49 additions and 40 deletions
+3 -3
View File
@@ -43,6 +43,7 @@
import RoomComposeParent from "@app/components/RoomComposeParent.svelte"
import {
deriveUserRooms,
notificationSettings,
userSettingsValues,
decodeRelay,
deriveUserRoomMembershipStatus,
@@ -78,9 +79,8 @@
const hasAlerts = throttled(
800,
_derived(
userSettingsValues,
({alerts_spaces, alerts_push, alerts_sound, alerts_badge}) =>
alerts_spaces && (alerts_push || alerts_sound || alerts_badge),
notificationSettings,
({spaces, push, sound, badge}) => spaces && (push || sound || badge),
),
)