this repo has no description
0
fork

Configure Feed

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

Test fix for uncloseable 'New notifications' bug

+3 -6
+3 -6
src/pages/notifications.jsx
··· 130 130 } 131 131 132 132 const loadNotifications = (firstLoad) => { 133 + setShowNew(false); 133 134 setUIState('loading'); 134 135 (async () => { 135 136 try { ··· 192 193 scrollTop: scrollableRef.current?.scrollTop, 193 194 inBackground: inBackground(), 194 195 disableIdleCheck, 195 - notificationsShowNew: snapStates.notificationsShowNew, 196 196 }); 197 197 if ( 198 198 snapStates.settings.autoRefresh && 199 199 scrollableRef.current?.scrollTop < 16 && 200 200 (disableIdleCheck || window.__IDLE__) && 201 - !inBackground() && 202 - snapStates.notificationsShowNew 201 + !inBackground() 203 202 ) { 204 - setShowNew(false); 205 203 loadNotifications(true); 206 - } else { 207 - setShowNew(snapStates.notificationsShowNew); 208 204 } 209 205 }, 210 206 [snapStates.notificationsShowNew, snapStates.settings.autoRefresh, uiState], ··· 228 224 if (v) { 229 225 loadUpdates(); 230 226 } 227 + setShowNew(v); 231 228 }); 232 229 } 233 230 return () => {