Don't show/hide the right panel depending on window size

Fixes https://github.com/vector-im/riot-web/issues/8772
pull/21833/head
Travis Ralston 2019-12-05 23:30:13 -07:00
parent 8b492fdaa5
commit d8d8e59002
1 changed files with 0 additions and 6 deletions

View File

@ -1699,12 +1699,6 @@ export default createReactClass({
if (this._windowWidth <= showLhsThreshold && window.innerWidth > showLhsThreshold) {
dis.dispatch({ action: 'show_left_panel' });
}
if (this._windowWidth > hideRhsThreshold && window.innerWidth <= hideRhsThreshold) {
dis.dispatch({ action: 'hide_right_panel' });
}
if (this._windowWidth <= showRhsThreshold && window.innerWidth > showRhsThreshold) {
dis.dispatch({ action: 'show_right_panel' });
}
this.state.resizeNotifier.notifyWindowResized();
this._windowWidth = window.innerWidth;