nisbet-hubbard
5777edbcad
Fix unix socket permissions
2023-12-09 11:31:08 +08:00
David Robertson
a8e9c56636
Bump version string, missed in v0.99.13
2023-12-08 14:11:28 +00:00
David Robertson
042010c514
Remind releaser to bump the version string
2023-12-08 14:10:55 +00:00
kegsay
e3b110e13b
Update README.md
v0.99.13
2023-11-24 16:08:50 +00:00
kegsay
c31eb3e661
Merge pull request #382 from matrix-org/kegan/conn-map-tests
...
bugfix: when connections expire, only delete the affected connection
2023-11-24 15:31:04 +00:00
Kegan Dougal
81df9a54d2
Don't pull in complement for UTs as it needs libolm
2023-11-24 15:25:53 +00:00
Kegan Dougal
cc95ebe1e4
Review comments
2023-11-24 15:23:35 +00:00
Kegan Dougal
aec550f9b4
Better comments
2023-11-24 15:19:08 +00:00
Kegan Dougal
129dea816a
bugfix: fix 2 bugs with connection deletion code
...
- Connections are unique for the 3-uple (user, device, conneciton) IDs.
The code was only checking (user, device). This means we would delete
ALL connections for a device, is ANY connection expired.
- ...except we wouldn't, because of the 2nd bug, which is the deletion
code itself. This is missing `i--` so we will not do an ID check on
the element after a deleted index.
Both of these issues have now been fixed.
2023-11-24 14:47:47 +00:00
Kegan Dougal
86f9333fdd
Add failing test
2023-11-24 14:30:08 +00:00
Kegan Dougal
b1fd9a1218
Log errors when removing unknown keys
2023-11-24 14:16:13 +00:00
Kegan Dougal
eb351ff9b8
Add ConnMap UTs; tweak API shape to be a bit more sane
2023-11-24 13:18:24 +00:00
kegsay
a8fb526261
Merge pull request #380 from matrix-org/kegan/log-state-invalidate
...
Log information about the invalidated room
2023-11-21 10:33:47 +00:00
Kegan Dougal
d4f546f77e
Log information about the invalidated room
2023-11-20 10:15:45 +00:00
kegsay
62d3798955
Merge pull request #378 from cyberb/main
...
unix socket support
2023-11-17 18:12:45 +00:00
Boris Rybalkin
bf477c13fc
fix one more IsUnixSocket check
2023-11-17 12:25:49 +00:00
Boris Rybalkin
06fcbb12ae
chmod comment
2023-11-17 12:19:28 +00:00
Boris Rybalkin
c1dca54666
revert assertCustom
2023-11-17 12:13:33 +00:00
Boris Rybalkin
2f2501ec5b
go mod tidy
2023-11-17 12:12:42 +00:00
Boris Rybalkin
8d38785ac0
back to util functions
2023-11-16 19:31:43 +00:00
Boris Rybalkin
4c858fe3ef
fix more docs
2023-11-16 14:07:23 +00:00
Boris Rybalkin
d04a0a7c61
fix docs
2023-11-16 14:01:13 +00:00
Boris Rybalkin
b055d27d22
extract HomeServerUrl struct
2023-11-16 13:57:51 +00:00
Boris Rybalkin
ae73ace4a4
unix socket support
...
Signed-off-by: Boris Rybalkin <ribalkin@gmail.com>
2023-11-16 11:02:53 +00:00
kegsay
b6437ef4b3
Merge pull request #377 from matrix-org/kegan/cache-invalidation-tests
...
Add cache invalidation tests (rejoining rooms)
2023-11-16 10:47:43 +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
62b3662e29
Interface out store functions from UserCache to make tests happier
2023-11-14 16:12:04 +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
Kegan Dougal
365e7cf11a
Bump complement@main
2023-11-10 15:12:03 +00:00
David Robertson
192099dab8
Merge pull request #373 from matrix-org/dmr/fix-build
2023-11-10 11:56:08 +00:00
David Robertson
a8bef7ecd5
Fix bad merge between #363 and #368
2023-11-10 11:44:55 +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
8e32fff894
Bump to v0.99.12
v0.99.12
2023-11-09 16:32:03 +00:00
kegsay
d04ce7bc51
Merge pull request #369 from matrix-org/kegan/migrate-stuck-invites
...
Migrate stuck invites
2023-11-09 10:38:56 +00:00
Kegan Dougal
03f62871ef
Review comments
2023-11-09 10:29:26 +00:00
kegsay
bb003c1dcc
Merge pull request #368 from matrix-org/kegan/fix-create-event
...
bugfix: handle malformed state/timeline responses
2023-11-08 18:27:02 +00:00
Kegan Dougal
4de37c51f9
Migrate stuck invites
...
With tests.
2023-11-08 18:26:35 +00:00
Kegan Dougal
be0fb09ed9
Review comments
2023-11-08 15:05:43 +00:00
Kegan Dougal
c868e540db
bugfix: handle malformed state/timeline responses
...
Specifically, look for the create event in the timeline as this
has been seen in the wild on Synapse. Fixes #367 .
2023-11-08 10:36:36 +00:00
David Robertson
9aa8f55507
Fix build
2023-11-07 18:43:20 +00:00
David Robertson
4011e3812a
Batch destroy conns
2023-11-07 18:33:08 +00:00
David Robertson
78b1e5970c
Batch unregister users
...
acquire mutex once, rather than N times
2023-11-07 18:32:36 +00:00
David Robertson
041965ffd0
Invalidate: bail if we fail to fetch members
2023-11-07 13:56:12 +00:00
David Robertson
9ad93b861e
Initialise: let Other
state self-size
2023-11-07 13:28:16 +00:00
kegsay
421a572edd
Merge pull request #366 from matrix-org/kegan/invite-join-gap
...
Modify which events get returned when requesting initial timeline events
2023-11-06 12:43:28 +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