Commit 4443e4c4 authored by mgabdev's avatar mgabdev

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.
parent c0122559
......@@ -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(() => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment