Skip to content

Commit fb95ec8

Browse files
committed
feat: add hidePinnedMessageBanner to room view
1 parent aee24be commit fb95ec8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/components/structures/RoomView.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ interface IRoomProps extends RoomViewProps {
180180
* If true, hide the right panel
181181
*/
182182
hideRightPanel?: boolean;
183+
184+
/**
185+
* If true, hide the pinned messages banner
186+
*/
187+
hidePinnedMessageBanner?: boolean;
183188
}
184189

185190
export { MainSplitContentType };
@@ -2464,7 +2469,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
24642469
</AuxPanel>
24652470
);
24662471

2467-
const pinnedMessageBanner = (
2472+
const pinnedMessageBanner = !this.props.hidePinnedMessageBanner && (
24682473
<PinnedMessageBanner room={this.state.room} permalinkCreator={this.permalinkCreator} />
24692474
);
24702475

0 commit comments

Comments
 (0)