small update

pull/1786/head
Brice-W 4 years ago
parent e31b219bd4
commit 9c61defc0b

@ -194,7 +194,7 @@ class MessageInner extends React.PureComponent<Props, State> {
};
// as 'checkExpired' is potentially called more than once (componentDidUpdate & componentDidMount),
// we need to clear the timeout call to 'setExpired' first to avoid multiple calls to 'setExpired'.
clearTimeout(this.expiredTimeout);
global.clearTimeout(this.expiredTimeout);
this.expiredTimeout = setTimeout(setExpired, EXPIRED_DELAY);
}
}

Loading…
Cancel
Save