mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-10 01:00:28 +03:00
11 lines
395 B
TypeScript
11 lines
395 B
TypeScript
import { useSpecVersions } from './useSpecVersions';
|
|
|
|
export const useMediaAuthentication = (): boolean => {
|
|
const { versions, unstable_features: unstableFeatures } = useSpecVersions();
|
|
|
|
// Media authentication is introduced in spec version 1.11
|
|
const authenticatedMedia =
|
|
unstableFeatures?.['org.matrix.msc3916.stable'] || versions.includes('v1.11');
|
|
|
|
return authenticatedMedia;
|
|
};
|