Small tweaks

This commit is contained in:
Jon Staab
2026-04-01 14:07:29 -07:00
parent 6feeb23b1f
commit 25a69a8191
4 changed files with 11 additions and 7 deletions
+1 -4
View File
@@ -412,12 +412,9 @@ export const toggleRoomNotifications = async (url: string, h: string) => {
let updated: typeof alerts
if (!existing) {
// No space settings yet, create one with this room as an exception (default is notify: true)
updated = [...alerts, {url, notify: true, exceptions: [h]}]
} else {
// Toggle exception status
const hasException = existing.exceptions.includes(h)
const exceptions = hasException
const exceptions = existing.exceptions.includes(h)
? remove(h, existing.exceptions)
: append(h, existing.exceptions)