You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-22 04:02:40 +03:00
if instead of short-circuit and for readability
This commit is contained in:
@@ -110,7 +110,9 @@ module.exports = React.createClass({
|
||||
// abort all the timers for the users that started typing again
|
||||
usersThatStartedTyping.forEach((m) => {
|
||||
const timer = this.state.delayedStopTypingTimers[m.userId];
|
||||
timer && timer.abort();
|
||||
if (timer) {
|
||||
timer.abort();
|
||||
}
|
||||
});
|
||||
// prepare new delayedStopTypingTimers object to update state with
|
||||
let delayedStopTypingTimers = Object.assign({}, this.state.delayedStopTypingTimers);
|
||||
|
||||
Reference in New Issue
Block a user