Revert change to how notifications are loaded on mobile

zio/stable
Paul Frazee 2023-12-13 13:48:49 -08:00
parent a713f77e03
commit 5fa43530f6
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ module.exports = function () {
/** /**
* iOS build number. Must be incremented for each TestFlight version. * iOS build number. Must be incremented for each TestFlight version.
*/ */
const IOS_BUILD_NUMBER = '1' const IOS_BUILD_NUMBER = '2'
/** /**
* Android build number. Must be incremented for each release. * Android build number. Must be incremented for each release.

View File

@ -67,8 +67,8 @@ export function NotificationsScreen({}: Props) {
const onFocusCheckLatest = React.useCallback(() => { const onFocusCheckLatest = React.useCallback(() => {
// on focus, check for latest, but only invalidate if the user // on focus, check for latest, but only invalidate if the user
// isnt scrolled down to avoid moving content underneath them // isnt scrolled down to avoid moving content underneath them
unreadApi.checkUnread({invalidate: !isScrolledDown && isDesktop}) unreadApi.checkUnread({invalidate: !isScrolledDown})
}, [unreadApi, isScrolledDown, isDesktop]) }, [unreadApi, isScrolledDown])
checkLatestRef.current = onFocusCheckLatest checkLatestRef.current = onFocusCheckLatest
// on-visible setup // on-visible setup