Revert change to how notifications are loaded on mobile
parent
a713f77e03
commit
5fa43530f6
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue