From f2c67b4131931b5c4e50f8ceb20014bc65c5ab71 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 30 Jun 2022 14:51:20 +0100 Subject: [PATCH] Fix expand/collapse state wrong in metaspaces --- 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 df43341bf73..75cf47d5d36 100644 --- a/src/components/views/rooms/RoomSublist.tsx +++ b/src/components/views/rooms/RoomSublist.tsx @@ -664,7 +664,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({