Skip to content

Commit 1509f86

Browse files
committed
feat: add props to hide composer in RoomView
1 parent 8d3ba6e commit 1509f86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/structures/RoomView.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ interface IRoomProps extends RoomViewProps {
167167
* If true, hide the header
168168
*/
169169
hideHeader?: boolean;
170+
/*
171+
* If true, hide the composer
172+
*/
173+
hideComposer?: boolean;
170174
}
171175

172176
export { MainSplitContentType };
@@ -2447,6 +2451,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
24472451

24482452
let messageComposer;
24492453
const showComposer =
2454+
!this.props.hideComposer &&
24502455
!isRoomEncryptionLoading &&
24512456
// joined and not showing search results
24522457
myMembership === KnownMembership.Join &&

0 commit comments

Comments
 (0)