minor fix to access state of websocket (#2965)

This commit is contained in:
Saturnino Abril 2019-07-09 22:50:00 +08:00 committed by Harrison Healey
parent aa6ddf062d
commit 5715ed8e6f

View file

@ -5,7 +5,7 @@ import {userTyping as wsUserTyping} from 'mattermost-redux/actions/websocket';
export function userTyping(channelId, rootId) {
return async (dispatch, getState) => {
const {websocket} = getState().device;
const {websocket} = getState();
if (websocket.connected) {
wsUserTyping(channelId, rootId)(dispatch, getState);
}