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: notification list not refreshing when tab has unseen count

The .task block only called loadInitial when notifications were empty,
so returning to the tab with new notifications showed stale data.

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

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