mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 03:30:29 +03:00
* move block users to account settings * filter invites and add more options * add better rate limit recovery in rateLimitedActions util function
10 lines
357 B
TypeScript
10 lines
357 B
TypeScript
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;
|
|
};
|