mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-02 19:11:42 +02:00
fix unrelated tautology
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
f0085a9feb
commit
7c1ac7aaff
@ -1339,7 +1339,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||||||
// this if we are not scrolled up in the view. To find out, delegate to
|
// this if we are not scrolled up in the view. To find out, delegate to
|
||||||
// the timeline panel. If the timeline panel doesn't exist, then we assume
|
// the timeline panel. If the timeline panel doesn't exist, then we assume
|
||||||
// it is safe to reset the timeline.
|
// it is safe to reset the timeline.
|
||||||
if (!this.loggedInView.current || !this.loggedInView.current) {
|
if (!this.loggedInView.current) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return this.loggedInView.current.canResetTimelineInRoom(roomId);
|
return this.loggedInView.current.canResetTimelineInRoom(roomId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user