mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
This commit is contained in:
parent
b91bd52edd
commit
e65c67ca15
1 changed files with 2 additions and 2 deletions
|
@ -1065,10 +1065,10 @@ export default React.createClass({
|
||||||
// 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 (!self._loggedInView) {
|
if (!self._loggedInView || !self._loggedInView.child) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return self._loggedInView.canResetTimelineInRoom(roomId);
|
return self._loggedInView.child.canResetTimelineInRoom(roomId);
|
||||||
});
|
});
|
||||||
|
|
||||||
cli.on('sync', function(state, prevState) {
|
cli.on('sync', function(state, prevState) {
|
||||||
|
|
Loading…
Reference in a new issue