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

Commit

Permalink
remove more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
toger5 committed Dec 9, 2021
1 parent 1522f85 commit 6a6b223
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
RightPanelStore.instance.setRightPanel(RightPanelPhases.Timeline);
}
this.checkWidgets(this.state.room);
// this.checkRightPanel(this.state.room);
};

private checkWidgets = (room) => {
Expand All @@ -351,23 +350,6 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
: MainSplitContentType.Timeline;
};

// private checkRightPanel = (room) => {
// // TODO remove this!
// // This is a hack to hide the chat. This should not be necessary once the right panel
// // phase is stored per room. (need to be done after check widget so that mainSplitContentType is updated)
// if (
// RightPanelStore.instance.currentRoom?.phase === RightPanelPhases.Timeline &&
// this.state.showRightPanel &&
// !WidgetLayoutStore.instance.hasMaximisedWidget(this.state.room)
// ) {
// // Two timelines are shown prevent this by hiding the right panel
// dis.dispatch({
// action: Action.ToggleRightPanel,
// type: "room",
// });
// }
// };

private onReadReceiptsChange = () => {
this.setState({
showReadReceipts: SettingsStore.getValue("showReadReceipts", this.state.roomId),
Expand Down

0 comments on commit 6a6b223

Please sign in to comment.