Fix handle invisible status (#692)

This commit is contained in:
pranavpandey1998official 2019-03-19 00:31:23 +05:30 committed by Diego Mello
parent 477311f84a
commit e1f76a684d
1 changed files with 4 additions and 0 deletions

View File

@ -114,6 +114,10 @@ const RocketChat = {
reduxStore.dispatch(setUser(ddpMessage.fields));
}
if (ddpMessage.cleared && user && user.id === ddpMessage.id) {
reduxStore.dispatch(setUser({ status: 'offline' }));
}
if (this._setUserTimer) {
clearTimeout(this._setUserTimer);
this._setUserTimer = null;