DEV: Avoid infinite calling of computeDatesSeparators() (#21616)

This commit is contained in:
Andrei Prigorshnev 2023-05-18 11:53:40 +04:00 committed by GitHub
parent 86c2f461b0
commit 20a7192b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,7 @@ export default class ChatLivePane extends Component {
computeDatesSeparators() {
cancel(this._laterComputeHandler);
this._computeDatesSeparators();
this._laterComputeHandler = later(this, this.computeDatesSeparators, 100);
this._laterComputeHandler = later(this, this._computeDatesSeparators, 100);
}
// A more consistent way to scroll to the bottom when we are sure this is our goal