Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
don't gutwrench
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Dec 18, 2017
1 parent e65c67c commit fa14bc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/structures/MatrixChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,10 +1065,10 @@ export default React.createClass({
// 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
// it is safe to reset the timeline.
if (!self._loggedInView || !self._loggedInView.child) {
if (!self._loggedInView) {
return true;
}
return self._loggedInView.child.canResetTimelineInRoom(roomId);
return self._loggedInView.getDecoratedComponentInstance().canResetTimelineInRoom(roomId);
});

cli.on('sync', function(state, prevState) {
Expand Down

0 comments on commit fa14bc9

Please sign in to comment.