emit timeline_resize in MatrixChat based on ResizeNotifier

as it's used in PersistentElement which could be used at various places
This commit is contained in:
Bruno Windels 2019-03-12 16:37:20 +01:00
parent 891e343df6
commit 1bdbf3086f
3 changed files with 8 additions and 10 deletions

View file

@ -21,7 +21,6 @@ import PropTypes from 'prop-types';
import classNames from 'classnames';
import shouldHideEvent from '../../shouldHideEvent';
import {wantsDateSeparator} from '../../DateUtils';
import dis from "../../dispatcher";
import sdk from '../../index';
import MatrixClientPeg from '../../MatrixClientPeg';
@ -665,10 +664,6 @@ module.exports = React.createClass({
}
},
onResize: function() {
dis.dispatch({ action: 'timeline_resize' }, true);
},
render: function() {
const ScrollPanel = sdk.getComponent("structures.ScrollPanel");
const WhoIsTypingTile = sdk.getComponent("rooms.WhoIsTypingTile");