Erik Johnston
|
fa77d4cb52
|
Store calculated room ID on top-level
Rather than validating and then re-calcualting it every time, let's just
store it on the top-level.
|
2026-05-29 14:44:29 +01:00 |
|
Erik Johnston
|
6fc928707b
|
Merge validate and get room ID
|
2026-05-29 14:21:19 +01:00 |
|
Erik Johnston
|
7efb2f8b50
|
Tidy up SynapseDuration
|
2026-05-29 14:09:25 +01:00 |
|
Erik Johnston
|
6978773c3f
|
Clean up create event in auth events error
|
2026-05-29 13:34:50 +01:00 |
|
Erik Johnston
|
e43d93b1bb
|
Use match in calculate_event_id
|
2026-05-29 13:19:51 +01:00 |
|
Erik Johnston
|
f2743a28b5
|
Add FIXME to test_msc4242
|
2026-05-29 13:15:30 +01:00 |
|
Erik Johnston
|
08511cc830
|
Add FIXME to remove USE_FROZEN_DICTS
|
2026-05-29 12:09:32 +01:00 |
|
Erik Johnston
|
fbbdafb636
|
Add comment to test as a sanity check
|
2026-05-29 11:14:21 +01:00 |
|
Erik Johnston
|
4a75f6b883
|
Add SynapseDuration::from_hours
|
2026-05-29 11:11:42 +01:00 |
|
Erik Johnston
|
2f041e6dbb
|
Add comment that common/specific fields are immutable
|
2026-05-29 11:10:13 +01:00 |
|
Erik Johnston
|
ddea42625d
|
Update missing auth events error
|
2026-05-29 11:07:39 +01:00 |
|
Erik Johnston
|
93a1185ba4
|
Remove Python redaction in favour of Rust
Rather than keeping two implementations about
|
2026-05-28 10:59:31 +01:00 |
|
Erik Johnston
|
cb6906e3a5
|
Correctly redact m.relates_to
We didn't keep `m.relates_to` field in the latest room versions.
|
2026-05-28 10:58:56 +01:00 |
|
Erik Johnston
|
00e8108714
|
Handle the case of a very large duration
|
2026-05-27 16:59:28 +01:00 |
|
Erik Johnston
|
0105b520bc
|
Validate that the room ID does actually start with a '!'
|
2026-05-27 16:58:19 +01:00 |
|
Erik Johnston
|
e6fe3aa6a3
|
make_event_from_dict raises a SynapseError
|
2026-05-27 16:56:14 +01:00 |
|
Erik Johnston
|
77a2348615
|
Transfer existing and previous docstrings to events.pyi
|
2026-05-27 16:39:34 +01:00 |
|
Erik Johnston
|
3e4b11e7f6
|
Fix docstrings in stub file
|
2026-05-27 16:24:11 +01:00 |
|
Erik Johnston
|
06b933698f
|
Add docstring to 'other_fields'
|
2026-05-27 16:08:10 +01:00 |
|
Erik Johnston
|
a89a1c0563
|
Expand FormattedEvent type
|
2026-05-27 16:06:05 +01:00 |
|
Erik Johnston
|
39c7501a1a
|
Fixup FormattedEvent docstring
|
2026-05-27 16:04:15 +01:00 |
|
Erik Johnston
|
66fdb410f1
|
'Kept seperate from common/specific fields...'
|
2026-05-27 15:59:59 +01:00 |
|
Erik Johnston
|
114f94a2a1
|
Use PyAssertionError
|
2026-05-27 15:56:28 +01:00 |
|
Erik Johnston
|
a3082b76be
|
Ensure room_id is absent for create event
|
2026-05-27 15:54:19 +01:00 |
|
Erik Johnston
|
ee733ae2f6
|
Correctly handle room_id/state_key being null
These should either be absent or strings. We cannot use `Option` as that
does not differentiate between `null` and an absent field.
|
2026-05-27 15:51:03 +01:00 |
|
Erik Johnston
|
a427fb3fe2
|
Expand clone_event docstring
|
2026-05-27 13:44:12 +01:00 |
|
Erik Johnston
|
8fd10e4143
|
s/test_room_id_for_create_event/test_room_id_for_create_event_format_v4/
|
2026-05-27 13:38:25 +01:00 |
|
Erik Johnston
|
ae3a03fc4f
|
Sanity check state_key is None instead of some empty string
|
2026-05-27 13:37:22 +01:00 |
|
Erik Johnston
|
9fa851d7f5
|
Comment on why state_key_attr
|
2026-05-27 13:31:59 +01:00 |
|
Erik Johnston
|
141df2ed8b
|
Comment on why we're using a Mock
|
2026-05-27 13:28:28 +01:00 |
|
Erik Johnston
|
90ee916529
|
Comment on type ignore
|
2026-05-27 13:23:38 +01:00 |
|
Erik Johnston
|
da42b90fa1
|
Add back isinstance EventProtocol test
|
2026-05-27 13:20:10 +01:00 |
|
Erik Johnston
|
feaa364f86
|
Rename bad_key to unknown_key
|
2026-05-27 13:14:57 +01:00 |
|
Erik Johnston
|
d6258ff227
|
Make test_redact_missing_type clearer
|
2026-05-27 13:13:42 +01:00 |
|
Erik Johnston
|
925f5a1294
|
Handle MSC4242 in redact
|
2026-05-27 12:57:30 +01:00 |
|
Erik Johnston
|
15462d1d44
|
Lint
|
2026-05-27 12:57:16 +01:00 |
|
Erik Johnston
|
f1ae164ab9
|
Remove redacted_because TODO
|
2026-05-27 12:53:46 +01:00 |
|
Erik Johnston
|
51ace0f588
|
Don't check PDU size in compute_reference_hash
|
2026-05-27 12:52:45 +01:00 |
|
Erik Johnston
|
1479a94ee7
|
Pop AGE_TS when redacting as well
|
2026-05-27 12:47:45 +01:00 |
|
Erik Johnston
|
ecf8e8c869
|
Comment why type_
|
2026-05-27 12:05:15 +01:00 |
|
Erik Johnston
|
309f826d21
|
Note that third-party modules rely on deprecated functions
|
2026-05-27 12:04:04 +01:00 |
|
Erik Johnston
|
ee669251c1
|
Clean up .sticky_duration()
|
2026-05-27 12:02:50 +01:00 |
|
Erik Johnston
|
ffe6c8b430
|
Add MSC4354_STICKY constant
|
2026-05-27 11:51:03 +01:00 |
|
Erik Johnston
|
17b231c3e8
|
Fix RoomPolicyTestCase to not set signature block
|
2026-05-27 11:35:11 +01:00 |
|
Erik Johnston
|
7d5f36d2a4
|
Merge remote-tracking branch 'origin/develop' into erikj/events_rust
|
2026-05-27 11:22:59 +01:00 |
|
Erik Johnston
|
1d7f67f91b
|
Change new test_validate_new_with_mentions_succeeds_even_when_frozen test
Since we no longer have an `event.freeze()` we simply test that the
validator works on the (already frozen) event.
Test was introduced in #19634
|
2026-05-27 11:16:06 +01:00 |
|
Tulir Asokan
|
0e39c0c8f6
|
Fix policy server signature merging again (#19797)
Fixes #19796
|
2026-05-26 14:12:20 -05:00 |
|
Erik Johnston
|
2d866f945f
|
Merge remote-tracking branch 'origin/develop' into erikj/events_rust
|
2026-05-21 15:04:37 +01:00 |
|
Erik Johnston
|
025f1a479e
|
Fix tests
|
2026-05-21 14:56:48 +01:00 |
|
Erik Johnston
|
c9e9d76e86
|
Make MAX_DURATION a SynapseDuration
|
2026-05-21 14:45:52 +01:00 |
|