Hotfix - Turn off loading new notifications (for now)

• Hotfix:
- Turn off loading new notifications for now. Loading new notifications loads the same initial notifications. This will be in place until the notification page loads new notifications with max_id.
This commit is contained in:
mgabdev 2020-05-18 17:51:17 -04:00
parent c0122559fa
commit 4443e4c4ed

View File

@ -54,12 +54,12 @@ class Notifications extends ImmutablePureComponent {
handleLoadGap = (maxId) => {
// maxId={index > 0 ? notifications.getIn([index - 1, 'id']) : null}
this.props.dispatch(expandNotifications({ maxId }))
// this.props.dispatch(expandNotifications({ maxId }))
}
handleLoadOlder = debounce(() => {
const last = this.props.notifications.last()
this.props.dispatch(expandNotifications({ maxId: last && last.get('id') }))
// this.props.dispatch(expandNotifications({ maxId: last && last.get('id') }))
}, 300, { leading: true })
handleScrollToTop = debounce(() => {