Replace setImmediate with setTimeout (#12614)

This commit is contained in:
Michael Telatynski 2024-06-13 15:15:59 +01:00 committed by GitHub
parent 21ae29c002
commit 8b4e3e6647
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 46 additions and 39 deletions

View file

@ -195,7 +195,7 @@ export class RoomTile extends React.PureComponent<ClassProps, State> {
payload.room_id === this.props.room.roomId &&
payload.show_room_tile
) {
setImmediate(() => {
setTimeout(() => {
this.scrollIntoView();
});
}