Remove E2EE setting

Since e2ee is enabled by default now
This commit is contained in:
David Baker
2023-10-13 10:30:06 +01:00
parent 515a73ce30
commit 5ef208e789
8 changed files with 8 additions and 62 deletions

View File

@@ -15,7 +15,6 @@ limitations under the License.
*/
import { useCallback, useMemo } from "react";
import { isE2EESupported } from "livekit-client";
import { PosthogAnalytics } from "../analytics/PosthogAnalytics";
import {
@@ -91,16 +90,6 @@ export const useOptInAnalytics = (): DisableableSetting<boolean | null> => {
return [false, null];
};
export const useEnableE2EE = (): DisableableSetting<boolean | null> => {
const settingVal = useSetting<boolean | null>(
"enable-end-to-end-encryption",
true,
);
if (isE2EESupported()) return settingVal;
return [false, null];
};
export const useDeveloperSettingsTab = (): Setting<boolean> =>
useSetting("developer-settings-tab", false);