From 3531287f1fff98a44de364e137e95106d450d56e Mon Sep 17 00:00:00 2001 From: David Teller Date: Fri, 1 Jul 2022 15:27:15 +0200 Subject: [PATCH] WIP: We need timestamps --- proposals/3840-ignore-invites.md | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/proposals/3840-ignore-invites.md b/proposals/3840-ignore-invites.md index 93991f687..a6c884847 100644 --- a/proposals/3840-ignore-invites.md +++ b/proposals/3840-ignore-invites.md @@ -25,11 +25,32 @@ We adopt a similar `m.ignored_invites` with content: | Content | Type | Description | |---------|------|-------------| -| `ignored_user_ids` | optional `string[]` | Ignore invites from these users. | -| `ignored_servers` | optional `string[]` | Ignore invites from users in these homeservers. | -| `ignored_room_ids` | optional `string[]` | Ignore invites towards these rooms. | +| `ignored_user_ids` | optional `User[]` | Ignore invites from these users. | +| `ignored_servers` | optional `Server[]` | Ignore invites from users in these homeservers. | +| `ignored_room_ids` | optional `Room[]` | Ignore invites towards these rooms. | | `ignored_invites` | optional `Invite[]` | Ignore specific invites. | +where `Server` is + +| Content | Type | Description | +|------------|--------|-------------| +| `domain` | string | The server to ignore. | +| `ts` | timestamp | The instant at which the invite was received. Used for visual purposes (i.e. order by most recent) and/or cleanup. | + +where `Room` is + +| Content | Type | Description | +|------------|--------|-------------| +| `room_id` | string | The room to ignore. | +| `ts` | timestamp | The instant at which the invite was received. Used for visual purposes (i.e. order by most recent) and/or cleanup. | + +where `User` is + +| Content | Type | Description | +|------------|--------|-------------| +| `user_id` | string | The user to ignore. | +| `ts` | timestamp | The instant at which the invite was received. Used for visual purposes (i.e. order by most recent) and/or cleanup. | + where `Invite` is | Content | Type | Description |