diff --git a/app/views/CreateChannelView/RoomSettings/index.tsx b/app/views/CreateChannelView/RoomSettings/index.tsx index 5659767bc..3e933dfff 100644 --- a/app/views/CreateChannelView/RoomSettings/index.tsx +++ b/app/views/CreateChannelView/RoomSettings/index.tsx @@ -20,6 +20,7 @@ export const RoomSettings = ({ setValue: UseFormSetValue; createChannelPermission: boolean; createPrivateChannelPermission: boolean; + defaultEncryptionOn: boolean; }) => { const [type, setType] = useState(true); const [readOnly, setReadOnly] = useState(false); diff --git a/app/views/CreateChannelView/index.tsx b/app/views/CreateChannelView/index.tsx index 949a5c6cf..b663c9d9a 100644 --- a/app/views/CreateChannelView/index.tsx +++ b/app/views/CreateChannelView/index.tsx @@ -69,7 +69,7 @@ const CreateChannelView = () => { const [createChannelPermission, createPrivateChannelPermission] = usePermissions(['create-c', 'create-p']); const { defaultEncryptionOn } = useAppSelector(state => { - const defaultEncryptionOn = state.encryption.enabled && state.settings.E2E_Enabled_Default_PrivateRooms; + const defaultEncryptionOn = state.encryption.enabled && (state.settings.E2E_Enabled_Default_PrivateRooms as boolean); return { defaultEncryptionOn };