about summary refs log tree commit diff
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-07-09 20:04:30 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-09 13:04:30 +0200
commitce3a371eeeaae35e49f1938ede5eb6105c764fbc (patch)
treec4a21c35d328807fa913d2790988ebfe3c4e221f
parent8781a8e2030b6b75d9412cddd7a696506c4633f0 (diff)
Fix initial loading of pinned Notifications column (#4126)
-rw-r--r--app/javascript/mastodon/features/ui/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/ui/index.js b/app/javascript/mastodon/features/ui/index.js
index 8d784dfe0..3baf09b93 100644
--- a/app/javascript/mastodon/features/ui/index.js
+++ b/app/javascript/mastodon/features/ui/index.js
@@ -11,6 +11,7 @@ import { isMobile } from '../../is_mobile';
 import { debounce } from 'lodash';
 import { uploadCompose } from '../../actions/compose';
 import { refreshHomeTimeline } from '../../actions/timelines';
+import { refreshNotifications } from '../../actions/notifications';
 import { WrappedSwitch, WrappedRoute } from './util/react_router_helpers';
 import UploadArea from './components/upload_area';
 import ColumnsAreaContainer from './containers/columns_area_container';
@@ -129,6 +130,7 @@ export default class UI extends React.PureComponent {
     document.addEventListener('dragend', this.handleDragEnd, false);
 
     this.props.dispatch(refreshHomeTimeline());
+    this.props.dispatch(refreshNotifications());
   }
 
   componentWillUnmount () {