diff --git a/ui/component/app/index.js b/ui/component/app/index.js index 940ebb7ef..1e3da5da0 100644 --- a/ui/component/app/index.js +++ b/ui/component/app/index.js @@ -34,7 +34,7 @@ import { doSetActiveChannel, doSetIncognito, } from 'redux/actions/app'; -import { doFetchModBlockedList } from 'redux/actions/comments'; +import { doFetchModBlockedList, doFetchCommentModAmIList } from 'redux/actions/comments'; import App from './view'; const select = (state) => ({ @@ -72,6 +72,7 @@ const perform = (dispatch) => ({ setIncognito: () => dispatch(doSetIncognito()), fetchModBlockedList: () => dispatch(doFetchModBlockedList()), resolveUris: (uris) => dispatch(doResolveUris(uris)), + fetchModAmIList: () => dispatch(doFetchCommentModAmIList()), }); export default hot(connect(select, perform)(App)); diff --git a/ui/component/app/view.jsx b/ui/component/app/view.jsx index a8d54e4c1..8f3244af1 100644 --- a/ui/component/app/view.jsx +++ b/ui/component/app/view.jsx @@ -80,7 +80,6 @@ type Props = { isAuthenticated: boolean, socketConnect: () => void, syncLoop: (?boolean) => void, - syncEnabled: boolean, currentModal: any, syncFatalError: boolean, activeChannelClaim: ?ChannelClaim, @@ -90,6 +89,7 @@ type Props = { setIncognito: (boolean) => void, fetchModBlockedList: () => void, resolveUris: (Array) => void, + fetchModAmIList: () => void, }; function App(props: Props) { @@ -124,6 +124,7 @@ function App(props: Props) { fetchModBlockedList, resolveUris, subscriptions, + fetchModAmIList, } = props; const appRef = useRef(); @@ -261,6 +262,7 @@ function App(props: Props) { if (hasMyChannels) { fetchModBlockedList(); + fetchModAmIList(); } }, [hasMyChannels, hasNoChannels, hasActiveChannelClaim, setActiveChannelIfNotSet, setIncognito]);