Added status update stream connection in gabsocial.js

This commit is contained in:
mgabdev 2019-08-28 01:31:25 -04:00
parent 31d4660947
commit d382c557b1
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,10 @@ import UI from '../features/ui';
import Introduction from '../features/introduction';
import { fetchCustomEmojis } from '../actions/custom_emojis';
import { hydrateStore } from '../actions/store';
import { connectUserStream } from '../actions/streaming';
import {
connectUserStream,
connectStatusUpdateStream,
} from '../actions/streaming';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import initialState from '../initial_state';
@ -70,6 +73,7 @@ export default class GabSocial extends React.PureComponent {
componentDidMount() {
this.disconnect = store.dispatch(connectUserStream());
store.dispatch(connectStatusUpdateStream());
}
componentWillUnmount () {