mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-09 16:50:28 +03:00
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:
parent
0d27bde33e
commit
206ed33516
17 changed files with 1088 additions and 524 deletions
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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue