Fix handle invisible status (#692)
This commit is contained in:
parent
477311f84a
commit
e1f76a684d
|
@ -114,6 +114,10 @@ const RocketChat = {
|
||||||
reduxStore.dispatch(setUser(ddpMessage.fields));
|
reduxStore.dispatch(setUser(ddpMessage.fields));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ddpMessage.cleared && user && user.id === ddpMessage.id) {
|
||||||
|
reduxStore.dispatch(setUser({ status: 'offline' }));
|
||||||
|
}
|
||||||
|
|
||||||
if (this._setUserTimer) {
|
if (this._setUserTimer) {
|
||||||
clearTimeout(this._setUserTimer);
|
clearTimeout(this._setUserTimer);
|
||||||
this._setUserTimer = null;
|
this._setUserTimer = null;
|
||||||
|
|
Loading…
Reference in New Issue