forked from cybrespace/mastodon
Fix initial loading of pinned Notifications column (#4126)
This commit is contained in:
parent
8781a8e203
commit
ce3a371eee
|
@ -11,6 +11,7 @@ import { isMobile } from '../../is_mobile';
|
||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
import { uploadCompose } from '../../actions/compose';
|
import { uploadCompose } from '../../actions/compose';
|
||||||
import { refreshHomeTimeline } from '../../actions/timelines';
|
import { refreshHomeTimeline } from '../../actions/timelines';
|
||||||
|
import { refreshNotifications } from '../../actions/notifications';
|
||||||
import { WrappedSwitch, WrappedRoute } from './util/react_router_helpers';
|
import { WrappedSwitch, WrappedRoute } from './util/react_router_helpers';
|
||||||
import UploadArea from './components/upload_area';
|
import UploadArea from './components/upload_area';
|
||||||
import ColumnsAreaContainer from './containers/columns_area_container';
|
import ColumnsAreaContainer from './containers/columns_area_container';
|
||||||
|
@ -129,6 +130,7 @@ export default class UI extends React.PureComponent {
|
||||||
document.addEventListener('dragend', this.handleDragEnd, false);
|
document.addEventListener('dragend', this.handleDragEnd, false);
|
||||||
|
|
||||||
this.props.dispatch(refreshHomeTimeline());
|
this.props.dispatch(refreshHomeTimeline());
|
||||||
|
this.props.dispatch(refreshNotifications());
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount () {
|
componentWillUnmount () {
|
||||||
|
|
Loading…
Reference in New Issue