You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-28 09:24:05 +03:00
Fix thread list jumping back down while scrolling (#9606)
* Fix timeline jumping after every thread update * Add tests to prevent this from occuring again
This commit is contained in:
committed by
GitHub
parent
5c60211d76
commit
55d9dbf00d
@@ -347,8 +347,8 @@ export default class MessagePanel extends React.Component<IProps, IState> {
|
||||
return this.eventTiles[eventId]?.ref?.current;
|
||||
}
|
||||
|
||||
public getTileForEventId(eventId: string): UnwrappedEventTile {
|
||||
if (!this.eventTiles) {
|
||||
public getTileForEventId(eventId?: string): UnwrappedEventTile | undefined {
|
||||
if (!this.eventTiles || !eventId) {
|
||||
return undefined;
|
||||
}
|
||||
return this.eventTiles[eventId];
|
||||
|
||||
Reference in New Issue
Block a user