mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-12-28 18:36:13 +00:00
Fix auth media check for dendrite (#1952)
This commit is contained in:
parent
c75e903619
commit
4923b17ad6
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue