162 Commits

Author SHA1 Message Date
Kegan Dougal
a7152348ac Add regression test for https://github.com/matrix-org/sliding-sync/issues/417 2024-04-11 16:08:33 +01:00
Kegan Dougal
51b851a48a Add live stream test; correctly calculate avatar changes 2024-01-22 11:33:09 +00:00
Kegan Dougal
08d3ec9745 only use the hero avatar if the room is a DM 2024-01-22 10:34:06 +00:00
Kegan Dougal
8d300dc206 Add avatar regression test 2024-01-22 10:05:32 +00:00
Kegan Dougal
4c6d504022 bugfix: ensure metadata about space children doesn't leak to active connections
If Alice and Bob are in the same space, and Bob creates a child in that space,
Alice would incorrectly receive global metadata about that child room if Alice
was live syncing at that time. This leak did not expose confidential information
as Alice could receive all that metadata via the /rooms/{roomId}/hierarchy endpoint
already. However, it would cause clients to put the space child room into the room
list which would be very confusing, as it would have no timeline and no other data.
2024-01-12 12:15:38 +00:00
Kegan Dougal
eae54fbcb7 bugfix: send [] initially when the poller starts up
This ensures we tell clients about used/missing fallback keys initially.
2024-01-05 11:20:33 +00:00
Kegan Dougal
0bd026fc09 bugfix: correctly tell clients when the fallback key has been used
Fixes a class of unable to decrypt errors caused when the fallback
key was used but the client was unaware.
2024-01-04 17:06:28 +00:00
Kegan Dougal
b58b9ef48e Also check state is correct when other users use the proxy 2023-11-16 10:34:00 +00:00
Kegan Dougal
079fc9cb75 Review comments 2023-11-16 10:08:35 +00:00
Kegan Dougal
c0b8fa05b8 Test prev batches and set prev_batch on live timeline events 2023-11-14 14:48:39 +00:00
Kegan Dougal
a25b2ee39d fix avatar updates; add e2e test for rejoining 2023-11-14 13:56:06 +00:00
David Robertson
cbd3c3c5c0
Merge pull request #363 from matrix-org/dmr/resnapshot-3 2023-11-10 11:38:12 +00:00
Kegan Dougal
6f2a00a2ce Review comments 2023-11-06 12:33:30 +00:00
Kegan Dougal
7e06813fe2 Fix #365: only return the last joined range
If we returned multiple distinct ranges, we always assumed that
the history visibility was "joined", so we would never return
events in the invite/shared state. This would be fine if the client
had a way to fetch those events sent before they were joined, but
they did not have a way as the prev_batch token would not be set
correctly. We now only return a single range of events and the prev
batch for /that/ range only, and defer to the upstream HS for
history visibility calculations.

Add end-to-end test to assert this new behaviour works.
2023-11-06 11:54:15 +00:00
Kegan Dougal
89c4198765 Add regression test for #365 2023-11-06 10:44:39 +00:00
David Robertson
2052632d0c
E2E test changes from #329.
I don't fully remember the details, but may as well pluck this from the
previous PR.
2023-11-03 17:56:25 +00:00
David Robertson
c37e906bf5
Simplify test case 2023-10-26 17:02:16 +01:00
David Robertson
f3037861a7
Cancel outstanding requests when destroying conns 2023-10-26 15:58:06 +01:00
David Robertson
72c3415561
Test case 2023-10-26 15:16:32 +01:00
David Robertson
78df8fd142
E2E test demonstrating ban leakage 2023-10-17 17:43:21 +01:00
Kegan Dougal
d1cb97663f Fixup tests 2023-10-11 17:14:49 +01:00
Kegan Dougal
37aa1469a5 WIP: use complement libraries 2023-10-11 12:23:46 +01:00
David Robertson
e75a462d4c
Merge pull request #300 from matrix-org/dmr/invalidate-timelines 2023-09-20 14:29:55 +01:00
David Robertson
bc5aa5412f
Maybe this is how you increment an integer? 2023-09-20 11:53:20 +01:00
David Robertson
921ed6e8b3
Faff with CI config 2023-09-20 11:25:43 +01:00
David Robertson
afdb0d7b80
run-tests.sh: timeout after a minute 2023-09-20 11:13:11 +01:00
Till Faelligen
d5f96eba7a
Use SlidingSyncUntilMembership for subscription test 2023-09-19 14:43:41 +02:00
Till Faelligen
e8c4dc4b8c
Add missing ranges 2023-09-19 09:37:58 +02:00
Till Faelligen
812a8b0bbc
Review comment, more tests 2023-09-19 08:28:06 +02:00
Till Faelligen
0194f374f2
Remove comment 2023-09-15 17:03:56 +02:00
Till Faelligen
e265e3b220
Move "heroes" to RoomSubscription 2023-09-15 16:57:12 +02:00
Till Faelligen
ce99d0f911
Initial support for room heroes 2023-09-15 15:08:07 +02:00
David Robertson
5b32cc44c2
Merge pull request #296 from matrix-org/dmr/cache-invalidation 2023-09-14 11:08:44 +01:00
Till
0a07eb1dbd
Apply suggestions from code review
Co-authored-by: kegsay <kegan@matrix.org>
2023-09-13 14:53:11 +02:00
Till Faelligen
64fc8d7fe3
Copy and paste test to also test rejecting invites 2023-09-13 13:04:28 +02:00
David Robertson
0bc33f3451
Fix the displayname test handling 2023-09-12 12:22:56 +01:00
David Robertson
f47267b574
WIP more tests 2023-09-11 20:16:23 +01:00
David Robertson
57d8c1deba
Expose Domain on CSAPI 2023-09-11 20:16:12 +01:00
David Robertson
6df13a160f
Fix test: correctly set alias 2023-09-08 18:18:26 +01:00
Till Faelligen
58669244e6
Update test 2023-09-08 14:01:22 +02:00
Till Faelligen
93b150de7c
Add failing test 2023-09-08 12:03:36 +02:00
David Robertson
7ccc488f02
Redaction E2E test case 2023-09-07 18:39:37 +01:00
David Robertson
956ef54d2d
creationContent -> reqBody
It is not the creation content (i.e. the content of the m.room.create event).
2023-09-07 18:34:08 +01:00
Kegan Dougal
9209c61691 bugfix: set unsigned.redacted_because field on redaction
Element X relies on this field being set.
2023-09-07 10:16:00 +01:00
Kegan Dougal
b2c26b7e93 Redact events in the DB on m.room.redaction
Fixes #279
2023-08-31 17:06:44 +01:00
David Robertson
13256d9393
Extra test case 2023-08-16 17:02:29 +01:00
David Robertson
fe6306937c
cap -> len
Co-authored-by: kegsay <kegan@matrix.org>
2023-08-16 13:37:54 +01:00
David Robertson
a51230d852
Merge remote-tracking branch 'origin/main' into dmr/extension-scoping-fix 2023-08-15 17:41:56 +01:00
Kegan Dougal
4d82c9dbd3 Do this as an e2e test instead 2023-08-15 14:55:00 +01:00
Till Faelligen
2758b62c86
Use LastMessageTimestamp in the case there are no bumpEventTypes defined 2023-08-15 14:19:42 +02:00