More consistency for invite records table
- Autojoined child spaces are recorded as invited - Update entry when reinvited - Delete entry when uninvited or removed from room - Allow linking with spaces you moderate, even if you didn't invite - Store power levels immediately for new invited rooms - Mark members as missing profile in this case - Only delete from invite table if it left the space
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
ALTER TABLE member_cache ADD COLUMN missing_profile INTEGER;
|
||||
|
||||
COMMIT;
|
||||
3
src/db/orm-defs.d.ts
vendored
3
src/db/orm-defs.d.ts
vendored
@@ -90,6 +90,7 @@ export type Models = {
|
||||
displayname: string | null
|
||||
avatar_url: string | null,
|
||||
power_level: number
|
||||
missing_profile: number | null
|
||||
}
|
||||
|
||||
member_power: {
|
||||
@@ -146,7 +147,7 @@ export type Models = {
|
||||
question_text: string
|
||||
is_closed: number
|
||||
}
|
||||
|
||||
|
||||
poll_option: {
|
||||
message_id: string
|
||||
matrix_option: string
|
||||
|
||||
Reference in New Issue
Block a user