This commit is contained in:
parent
fb48b14e94
commit
8e73d1b70f
|
@ -103,9 +103,16 @@ export default class RoomSubscription {
|
|||
}
|
||||
};
|
||||
|
||||
handleConnection = () => {
|
||||
reduxStore.dispatch(clearUserTyping());
|
||||
RocketChat.loadMissedMessages({ rid: this.rid }).catch(e => console.log(e));
|
||||
handleConnection = async () => {
|
||||
try {
|
||||
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) => {
|
||||
|
|
Loading…
Reference in New Issue