Skip to content

Commit

Permalink
Let message composer respect layout choice
Browse files Browse the repository at this point in the history
  • Loading branch information
su-ex committed Dec 15, 2020
1 parent 64339dc commit 3823150
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,8 @@ export default class RoomView extends React.Component<IProps, IState> {
resizeNotifier={this.props.resizeNotifier}
replyToEvent={this.state.replyToEvent}
permalinkCreator={this.getPermalinkCreatorForRoom(this.state.room)}
useIRCLayout={this.state.useIRCLayout}
useBubbleLayout={this.state.useBubbleLayout}
/>;
}

Expand Down
12 changes: 11 additions & 1 deletion src/components/views/rooms/MessageComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,18 @@ export default class MessageComposer extends React.Component {
);
}

const msgComposerClassNames = classNames(
"mx_MessageComposer",
{
// "mx_IRCLayout": this.props.useIRCLayout,
// "mx_GroupLayout": !this.props.useIRCLayout && !this.props.useBubbleLayout,
"mx_GroupLayout": !this.props.useBubbleLayout,
"sc_BubbleLayout": this.props.useBubbleLayout,
},
);

return (
<div className="mx_MessageComposer mx_GroupLayout">
<div className={msgComposerClassNames}>
<div className="mx_MessageComposer_wrapper">
<ReplyPreview permalinkCreator={this.props.permalinkCreator} />
<div className="mx_MessageComposer_row">
Expand Down

0 comments on commit 3823150

Please sign in to comment.