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

Commit

Permalink
Unhide display names when switching back to modern layout (#7601)
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown authored Jan 24, 2022
1 parent a2f1e85 commit cb152a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/structures/MessagePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ export default class MessagePanel extends React.Component<IProps, IState> {
}

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);
Expand Down

0 comments on commit cb152a5

Please sign in to comment.