Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit cb152a5

Browse files
authored
Unhide display names when switching back to modern layout (#7601)
1 parent a2f1e85 commit cb152a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/structures/MessagePanel.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ export default class MessagePanel extends React.Component<IProps, IState> {
289289
}
290290

291291
componentDidUpdate(prevProps, prevState) {
292+
if (prevProps.layout !== this.props.layout) {
293+
this.calculateRoomMembersCount();
294+
}
295+
292296
if (prevProps.readMarkerVisible && this.props.readMarkerEventId !== prevProps.readMarkerEventId) {
293297
const ghostReadMarkers = this.state.ghostReadMarkers;
294298
ghostReadMarkers.push(prevProps.readMarkerEventId);

0 commit comments

Comments
 (0)