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:
Cadence Ember
2026-02-13 21:59:17 +13:00
parent 5002f3046a
commit 08323f4512
6 changed files with 54 additions and 20 deletions

View File

@@ -0,0 +1,5 @@
BEGIN TRANSACTION;
ALTER TABLE member_cache ADD COLUMN missing_profile INTEGER;
COMMIT;

View File

@@ -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