mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-14 11:10:29 +03:00
Support room version 12 (#2399)
Some checks are pending
Deploy to Netlify (dev) / Deploy to Netlify (push) Waiting to run
Some checks are pending
Deploy to Netlify (dev) / Deploy to Netlify (push) Waiting to run
* WIP - support room version 12 * add room creators hook * revert changes from powerlevels * improve use room creators hook * add hook to get dm users * add options to add creators in create room/space * add member item component in member drawer * remove unused import * extract member drawer header component * get room creators as set only if room version support them * add room permissions hook * support room v12 creators power * make predecessor event id optional * add info about founders in permissions * allow to create infinite powers to room creators * allow everyone with permission to create infinite power * handle additional creators in room upgrade * add option to follow space tombstone
This commit is contained in:
parent
4d1ae4eafd
commit
f82cfead46
58 changed files with 1717 additions and 783 deletions
|
|
@ -18,6 +18,8 @@ export enum AccountDataEvent {
|
|||
MegolmBackupV1 = 'm.megolm_backup.v1',
|
||||
}
|
||||
|
||||
export type MDirectContent = Record<string, string[]>;
|
||||
|
||||
export type SecretStorageDefaultKeyContent = {
|
||||
key: string;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import { IImageInfo } from './common';
|
||||
|
||||
export enum Membership {
|
||||
Invite = 'invite',
|
||||
Knock = 'knock',
|
||||
|
|
@ -69,7 +71,7 @@ export type IRoomCreateContent = {
|
|||
room_version: string;
|
||||
type?: string;
|
||||
predecessor?: {
|
||||
event_id: string;
|
||||
event_id?: string;
|
||||
room_id: string;
|
||||
};
|
||||
};
|
||||
|
|
@ -93,3 +95,13 @@ export type MuteChanges = {
|
|||
added: string[];
|
||||
removed: string[];
|
||||
};
|
||||
|
||||
export type MemberPowerTagIcon = {
|
||||
key?: string;
|
||||
info?: IImageInfo;
|
||||
};
|
||||
export type MemberPowerTag = {
|
||||
name: string;
|
||||
color?: string;
|
||||
icon?: MemberPowerTagIcon;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue