From e72598e40bd291c19ab88e9497eaec9c3aee36f3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 1 Jul 2022 08:53:47 +0100 Subject: [PATCH] Fix expand/collapse state wrong in metaspaces (#8952) --- src/components/views/rooms/RoomSublist.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomSublist.tsx b/src/components/views/rooms/RoomSublist.tsx index c310ff9282..00a2c8978c 100644 --- a/src/components/views/rooms/RoomSublist.tsx +++ b/src/components/views/rooms/RoomSublist.tsx @@ -637,7 +637,7 @@ export default class RoomSublist extends React.Component { const collapseClasses = classNames({ 'mx_RoomSublist_collapseBtn': true, - 'mx_RoomSublist_collapseBtn_collapsed': !this.state.isExpanded, + 'mx_RoomSublist_collapseBtn_collapsed': !this.state.isExpanded && !this.props.forceExpanded, }); const classes = classNames({