Skip to content

Commit c22250c

Browse files
committed
feat: add props to hide composer in RoomView
1 parent 29df8d1 commit c22250c

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
@@ -163,6 +163,10 @@ interface IRoomProps extends RoomViewProps {
163163
* If true, hide the header
164164
*/
165165
hideHeader?: boolean;
166+
/*
167+
* If true, hide the composer
168+
*/
169+
hideComposer?: boolean;
166170
}
167171

168172
export { MainSplitContentType };
@@ -2443,6 +2447,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
24432447

24442448
let messageComposer;
24452449
const showComposer =
2450+
!this.props.hideComposer &&
24462451
!isRoomEncryptionLoading &&
24472452
// joined and not showing search results
24482453
myMembership === KnownMembership.Join &&

0 commit comments

Comments
 (0)