merge mod-dm-privacy into mod-report — vectors file: main's tombstone vectors + the warning vector re-added
1 file changed,
+33
−1
test/event-vectors/chat.json+33 −1
diff --git a/test/event-vectors/chat.json b/test/event-vectors/chat.json| index c098221..a75e82a 100644 |
| --- a/test/event-vectors/chat.json |
| +++ b/test/event-vectors/chat.json |
| @@ -496,6 +496,38 @@ |
| "uid": "user-alice-1", |
| "isRenderableChat": true |
| } |
| + }, |
| + { |
| + "name": "admin_warning_message", |
| + "description": "An admin warning (issue #578): an ordinary E2EE DM message whose payload carries warn:true. Clients render the same bubble with a distinct 'notice from an admin' framing; the flag rides inside the ciphertext, so the server never knows a warning from a hello.", |
| + "decrypted_payload": { |
| + "name": "Root", |
| + "text": "A report was filed about your behaviour here. Please keep this space welcoming.", |
| + "ts": 1700000300000, |
| + "uid": "user-admin-1", |
| + "warn": true |
| + }, |
| + "server_message": { |
| + "id": 12399, |
| + "created_at": 1700000300, |
| + "blob": "encrypted(decrypted_payload)" |
| + }, |
| + "expected_fold_event": { |
| + "type": "chat.msg", |
| + "name": "Root", |
| + "text": "A report was filed about your behaviour here. Please keep this space welcoming.", |
| + "ts": 1700000300000, |
| + "uid": "user-admin-1", |
| + "warn": true, |
| + "attachments": [] |
| + }, |
| + "expected_native_fields": { |
| + "name": "Root", |
| + "text": "A report was filed about your behaviour here. Please keep this space welcoming.", |
| + "uid": "user-admin-1", |
| + "warn": true, |
| + "isRenderableChat": true |
| + } |
| } |
| ] |
| -} |
| +} |
| \ No newline at end of file |