forked from github/cinny
Better invites management (#2336)
* move block users to account settings * filter invites and add more options * add better rate limit recovery in rateLimitedActions util function
This commit is contained in:
10
src/app/hooks/useReportRoomSupported.ts
Normal file
10
src/app/hooks/useReportRoomSupported.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user