Remove mx_GroupLayout (#8876)

This commit is contained in:
Suguru Hirahara 2022-06-25 11:51:07 +00:00 committed by GitHub
parent eca14dea57
commit 4b2a922e2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 3 additions and 19 deletions

View file

@ -21,7 +21,6 @@ import { IEventRelation, MatrixEvent } from 'matrix-js-sdk/src/models/event';
import { TimelineWindow } from 'matrix-js-sdk/src/timeline-window';
import { Direction } from 'matrix-js-sdk/src/models/event-timeline';
import { IRelationsRequestOpts } from 'matrix-js-sdk/src/@types/requests';
import classNames from "classnames";
import { logger } from 'matrix-js-sdk/src/logger';
import BaseCard from "../views/right_panel/BaseCard";
@ -314,10 +313,6 @@ export default class ThreadView extends React.Component<IProps, IState> {
const threadRelation = this.threadRelation;
const messagePanelClassNames = classNames("mx_RoomView_messagePanel", {
"mx_GroupLayout": this.state.layout === Layout.Group,
});
let timeline: JSX.Element;
if (this.state.thread) {
if (this.props.initialEvent && this.props.initialEvent.getRoomId() !== this.state.thread.roomId) {
@ -345,7 +340,7 @@ export default class ThreadView extends React.Component<IProps, IState> {
hideThreadedMessages={false}
hidden={false}
showReactions={true}
className={messagePanelClassNames}
className="mx_RoomView_messagePanel"
permalinkCreator={this.props.permalinkCreator}
membersLoaded={true}
editState={this.state.editState}