minor fix to access state of websocket (#2965)
This commit is contained in:
parent
aa6ddf062d
commit
5715ed8e6f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue