Tweak modal, reduce storage on mobile

This commit is contained in:
Jon Staab
2025-11-03 14:43:27 -08:00
parent 1d3f32fb99
commit 6923c2a8b7
3 changed files with 20 additions and 19 deletions
+1 -3
View File
@@ -173,9 +173,7 @@ export const notifications = derived(
if (hasNip29($relaysByUrl.get(url))) {
for (const h of getSpaceRoomsFromGroupSelections(url, $userGroupSelections)) {
const roomPath = makeRoomPath(url, h)
const latestEvent = allMessages.find(
e => $getUrlsForEvent(e.id).includes(url) && e.tags.find(spec(["h", h])),
)
const latestEvent = messages.find(e => e.tags.some(spec(["h", h])))
if (hasNotification(roomPath, latestEvent)) {
paths.add(spacePathMobile)