@@ -25,39 +25,17 @@ We adopt a similar `m.ignored_invites` with content:
25
25
26
26
| Content | Type | Description |
27
27
| ---------| ------| -------------|
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. |
32
32
33
- where ` Server ` is
33
+ where ` IgnoreMetadata ` is
34
34
35
35
| Content | Type | Description |
36
36
| ------------| --------| -------------|
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. |
60
37
| ` 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. |
61
39
62
40
### Client behaviour
63
41
0 commit comments