iOS client for Grain grain.social
ios photography atproto
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: refresh notifications when tapping tab with unseen notifications

Previously only fetched if the list was empty. Now refetches when
unseenCount > 0 so new notifications appear when tapping the tab.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+2 -2
+2 -2
Grain/Views/Notifications/NotificationsView.swift
··· 76 76 ) 77 77 .environment(auth) 78 78 } 79 - .task { 80 - if viewModel.notifications.isEmpty { 79 + .task(id: viewModel.unseenCount) { 80 + if viewModel.notifications.isEmpty || viewModel.unseenCount > 0 { 81 81 await viewModel.loadInitial(auth: auth.authContext()) 82 82 } 83 83 await viewModel.markAsSeen(auth: auth.authContext())