diff --git a/package-lock.json b/package-lock.json index d7d955dc..d2c7a617 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cinny", - "version": "4.2.0", + "version": "4.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cinny", - "version": "4.2.0", + "version": "4.2.1", "license": "AGPL-3.0-only", "dependencies": { "@atlaskit/pragmatic-drag-and-drop": "1.1.6", diff --git a/package.json b/package.json index 72200751..62d2f708 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cinny", - "version": "4.2.0", + "version": "4.2.1", "description": "Yet another matrix client", "main": "index.js", "type": "module", diff --git a/src/app/hooks/useMediaAuthentication.ts b/src/app/hooks/useMediaAuthentication.ts index 04b25e19..6e4d06aa 100644 --- a/src/app/hooks/useMediaAuthentication.ts +++ b/src/app/hooks/useMediaAuthentication.ts @@ -1,10 +1,11 @@ import { useSpecVersions } from './useSpecVersions'; export const useMediaAuthentication = (): boolean => { - const { versions } = useSpecVersions(); + const { versions, unstable_features: unstableFeatures } = useSpecVersions(); // Media authentication is introduced in spec version 1.11 - const authenticatedMedia = versions.includes('v1.11'); + const authenticatedMedia = + unstableFeatures?.['org.matrix.msc3916.stable'] || versions.includes('v1.11'); return authenticatedMedia; }; diff --git a/src/app/pages/auth/AuthFooter.tsx b/src/app/pages/auth/AuthFooter.tsx index c43f674c..d555ef0e 100644 --- a/src/app/pages/auth/AuthFooter.tsx +++ b/src/app/pages/auth/AuthFooter.tsx @@ -15,7 +15,7 @@ export function AuthFooter() { target="_blank" rel="noreferrer" > - v4.2.0 + v4.2.1 Twitter diff --git a/src/app/pages/client/WelcomePage.tsx b/src/app/pages/client/WelcomePage.tsx index 430bced5..161167e2 100644 --- a/src/app/pages/client/WelcomePage.tsx +++ b/src/app/pages/client/WelcomePage.tsx @@ -24,7 +24,7 @@ export function WelcomePage() { target="_blank" rel="noreferrer noopener" > - v4.2.0 + v4.2.1 } diff --git a/src/client/state/cons.js b/src/client/state/cons.js index e3db53e6..fbad4687 100644 --- a/src/client/state/cons.js +++ b/src/client/state/cons.js @@ -1,5 +1,5 @@ const cons = { - version: '4.2.0', + version: '4.2.1', secretKey: { ACCESS_TOKEN: 'cinny_access_token', DEVICE_ID: 'cinny_device_id',