Skip to content

Commit 124e62b

Browse files
authored
WIP: Applying feedback
Turning fields of `m.ignored_invites` into a map instead of (essentially) a list of tuples. This guarantees unicity and may simplify implementation.
1 parent 3531287 commit 124e62b

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

proposals/3840-ignore-invites.md

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,17 @@ We adopt a similar `m.ignored_invites` with content:
2525

2626
| Content | Type | Description |
2727
|---------|------|-------------|
28-
| `ignored_user_ids` | optional `User[]` | Ignore invites from these users. |
29-
| `ignored_servers` | optional `Server[]` | Ignore invites from users in these homeservers. |
30-
| `ignored_room_ids` | optional `Room[]` | Ignore invites towards these rooms. |
31-
| `ignored_invites` | optional `Invite[]` | Ignore specific invites. |
28+
| `ignored_user_ids` | optional map `UserId` => `IgnoreMetadata` | Ignore invites from these users. |
29+
| `ignored_servers` | optional map `domain` => `IgnoreMetadata` | Ignore invites from users in these homeservers. |
30+
| `ignored_room_ids` | optional map `RoomId` => `IgnoreMetadata` | Ignore invites towards these rooms. |
31+
| `ignored_invites` | optional map `RoomId` => map `UserId` => `IgnoreMetadata` | Ignore specific invites. |
3232

33-
where `Server` is
33+
where `IgnoreMetadata` is
3434

3535
| Content | Type | Description |
3636
|------------|--------|-------------|
37-
| `domain` | string | The server to ignore. |
38-
| `ts` | timestamp | The instant at which the invite was received. Used for visual purposes (i.e. order by most recent) and/or cleanup. |
39-
40-
where `Room` is
41-
42-
| Content | Type | Description |
43-
|------------|--------|-------------|
44-
| `room_id` | string | The room to ignore. |
45-
| `ts` | timestamp | The instant at which the invite was received. Used for visual purposes (i.e. order by most recent) and/or cleanup. |
46-
47-
where `User` is
48-
49-
| Content | Type | Description |
50-
|------------|--------|-------------|
51-
| `user_id` | string | The user to ignore. |
52-
| `ts` | timestamp | The instant at which the invite was received. Used for visual purposes (i.e. order by most recent) and/or cleanup. |
53-
54-
where `Invite` is
55-
56-
| Content | Type | Description |
57-
|------------|--------|-------------|
58-
| `room_id` | string | The room in which the user is invited. |
59-
| `user_id` | string | The user who issued the invite. |
6037
| `ts` | timestamp | The instant at which the invite was received. Used for visual purposes (i.e. order by most recent) and/or cleanup. |
38+
| `reason` | optional string | A human-readable reason for ignoring the invite. |
6139

6240
### Client behaviour
6341

0 commit comments

Comments
 (0)