diff --git a/docs/restrict-hs.md b/docs/restrict-hs.md index 63cbb73..f47b542 100644 --- a/docs/restrict-hs.md +++ b/docs/restrict-hs.md @@ -9,7 +9,7 @@ You can do that for a single homeserver or multiple homeservers at once, as `res an array of strings. The examples below contain the configuration settings to restrict the Synapse Admin instance to work only with -`example.com` (with Synapse runing at `matrix.example.com`) and +`example.com` (with Synapse running at `matrix.example.com`) and `example.net` (with Synapse running at `synapse.example.net`) homeservers. Note that the homeserver URL should be the _actual_ homeserver URL, and not the delegated one. diff --git a/src/components/ExperimentalFeatures.tsx b/src/components/ExperimentalFeatures.tsx index ab086bd..95d5b90 100644 --- a/src/components/ExperimentalFeatures.tsx +++ b/src/components/ExperimentalFeatures.tsx @@ -74,7 +74,7 @@ export const ExperimentalFeaturesList = () => { const updateFeature = async (feature_name: string, feature_value: boolean) => { const updatedFeatures = { ...features, [feature_name]: feature_value } as ExperimentalFeaturesModel; setFeatures(updatedFeatures); - const reponse = await dataProvider.updateFeatures(record.id, updatedFeatures); + const response = await dataProvider.updateFeatures(record.id, updatedFeatures); notify("ra.notification.updated", { messageArgs: { smart_count: 1 }, type: "success", diff --git a/src/synapse/dataProvider.ts b/src/synapse/dataProvider.ts index 19b5ba4..8b0deee 100644 --- a/src/synapse/dataProvider.ts +++ b/src/synapse/dataProvider.ts @@ -1439,12 +1439,12 @@ const dataProvider = withLifecycleCallbacks(baseDataProvider, [ } if (avatarFile instanceof File) { - const reponse = await dataProvider.uploadMedia({ + const response = await dataProvider.uploadMedia({ file: avatarFile, filename: params.data.avatar_file.title, content_type: params.data.avatar_file.rawFile.type, }); - params.data.avatar_url = reponse.content_uri; + params.data.avatar_url = response.content_uri; } return params; }, diff --git a/src/utils/config.ts b/src/utils/config.ts index 665d92e..5fee21f 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -67,7 +67,7 @@ export const FetchConfig = async () => { }; // load config from context -// we deliberately processing each key separately to avoid overwriting the whole config, loosing some keys, and messing +// we deliberately processing each key separately to avoid overwriting the whole config, losing some keys, and messing // with typescript types export const LoadConfig = (context: any) => { if (context?.restrictBaseUrl) {