From ff7f3f47becf89df454638760be68a5f28cf02ea Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 9 Jul 2021 17:51:18 +0100 Subject: [PATCH] Add directory publish customisation point This will help certain environments, such as P2P, where directory publishing can be allowed freely. --- .../room_settings/RoomPublishSetting.tsx | 8 ++++- src/customisations/Directory.ts | 31 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/customisations/Directory.ts diff --git a/src/components/views/room_settings/RoomPublishSetting.tsx b/src/components/views/room_settings/RoomPublishSetting.tsx index bc1d6f9e2c..5b6858abf5 100644 --- a/src/components/views/room_settings/RoomPublishSetting.tsx +++ b/src/components/views/room_settings/RoomPublishSetting.tsx @@ -20,6 +20,7 @@ import LabelledToggleSwitch from "../elements/LabelledToggleSwitch"; import { _t } from "../../../languageHandler"; import { MatrixClientPeg } from "../../../MatrixClientPeg"; import { replaceableComponent } from "../../../utils/replaceableComponent"; +import DirectoryCustomisations from '../../../customisations/Directory'; interface IProps { roomId: string; @@ -66,10 +67,15 @@ export default class RoomPublishSetting extends React.PureComponent