You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
@@ -134,7 +134,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
|
|||||||
if (isCollapsed && roomIndex > -1) {
|
if (isCollapsed && roomIndex > -1) {
|
||||||
this.toggleCollapsed();
|
this.toggleCollapsed();
|
||||||
}
|
}
|
||||||
// extend the visible section to include the room
|
// extend the visible section to include the room if it is entirely invisible
|
||||||
if (roomIndex >= this.numVisibleTiles) {
|
if (roomIndex >= this.numVisibleTiles) {
|
||||||
this.props.layout.visibleTiles = this.props.layout.tilesWithPadding(roomIndex + 1, MAX_PADDING_HEIGHT);
|
this.props.layout.visibleTiles = this.props.layout.tilesWithPadding(roomIndex + 1, MAX_PADDING_HEIGHT);
|
||||||
this.forceUpdate(); // because the layout doesn't trigger a re-render
|
this.forceUpdate(); // because the layout doesn't trigger a re-render
|
||||||
|
|||||||
Reference in New Issue
Block a user