[Glitch] Allow clients to fetch notifications made while they were offline

Port cbf97c03bb to glitch-soc
This commit is contained in:
Thibaut Girka
2018-05-27 19:30:52 +02:00
committed by ThibG
parent 0ad3eedd4c
commit 4eba8c50c3
5 changed files with 82 additions and 113 deletions

View File

@@ -10,7 +10,7 @@ import { isMobile } from 'flavours/glitch/util/is_mobile';
import { debounce } from 'lodash';
import { uploadCompose, resetCompose } from 'flavours/glitch/actions/compose';
import { expandHomeTimeline } from 'flavours/glitch/actions/timelines';
import { refreshNotifications } from 'flavours/glitch/actions/notifications';
import { expandNotifications } from 'flavours/glitch/actions/notifications';
import { clearHeight } from 'flavours/glitch/actions/height_cache';
import { WrappedSwitch, WrappedRoute } from 'flavours/glitch/util/react_router_helpers';
import UploadArea from './components/upload_area';
@@ -220,7 +220,7 @@ export default class UI extends React.Component {
}
this.props.dispatch(expandHomeTimeline());
this.props.dispatch(refreshNotifications());
this.props.dispatch(expandNotifications());
}
componentDidMount () {