diff --git a/src/components/structures/MessagePanel.tsx b/src/components/structures/MessagePanel.tsx index 5be430a6d2..9e97d64a77 100644 --- a/src/components/structures/MessagePanel.tsx +++ b/src/components/structures/MessagePanel.tsx @@ -289,6 +289,10 @@ export default class MessagePanel extends React.Component { } componentDidUpdate(prevProps, prevState) { + if (prevProps.layout !== this.props.layout) { + this.calculateRoomMembersCount(); + } + if (prevProps.readMarkerVisible && this.props.readMarkerEventId !== prevProps.readMarkerEventId) { const ghostReadMarkers = this.state.ghostReadMarkers; ghostReadMarkers.push(prevProps.readMarkerEventId);