Files
cinny/src/app/hooks/useReportRoomSupported.ts
T

11 lines
357 B
TypeScript
Raw Normal View History

2025-05-24 20:07:56 +05:30
import { useSpecVersions } from './useSpecVersions';
export const useReportRoomSupported = (): boolean => {
const { versions, unstable_features: unstableFeatures } = useSpecVersions();
// report room is introduced in spec version 1.13
const supported = unstableFeatures?.['org.matrix.msc4151'] || versions.includes('v1.13');
return supported;
};