This commit is contained in:
parent
fb48b14e94
commit
8e73d1b70f
|
@ -103,9 +103,16 @@ export default class RoomSubscription {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
handleConnection = () => {
|
handleConnection = async () => {
|
||||||
reduxStore.dispatch(clearUserTyping());
|
try {
|
||||||
RocketChat.loadMissedMessages({ rid: this.rid }).catch(e => console.log(e));
|
reduxStore.dispatch(clearUserTyping());
|
||||||
|
await RocketChat.loadMissedMessages({ rid: this.rid });
|
||||||
|
const _lastOpen = new Date();
|
||||||
|
this.read(_lastOpen);
|
||||||
|
this.lastOpen = _lastOpen;
|
||||||
|
} catch (e) {
|
||||||
|
log(e);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
handleNotifyRoomReceived = protectedFunction((ddpMessage: IDDPMessage) => {
|
handleNotifyRoomReceived = protectedFunction((ddpMessage: IDDPMessage) => {
|
||||||
|
|
Loading…
Reference in New Issue