Age | Commit message (Collapse) | Author |
|
commit c6e18c18e93b54c006c6b4d0044aa53a0735a906
Author: Neil Alexander <neilalexander@users.noreply.github.com>
Date: Fri Oct 14 15:42:58 2022 +0100
Changelog and version bump
|
|
(#2795)
This prevents us from holding onto durable consumers indefinitely for
rooms that have long since turned inactive, since they do have a bit of
a processing overhead in the NATS Server. If we clear up a consumer and
then a room becomes active again, the consumer gets recreated as needed.
The threshold is set to 24 hours for now, we can tweak it later if needs
be.
|
|
|
|
This updates a number of Dendrite's dependencies.
|
|
|
|
Fixes a minor bug, where we failed to add `UnreadNotifications` to the
join response, if it wasn't in
`GetUserUnreadNotificationCountsForRooms`.
|
|
|
|
rejected` (#2791)
Fixes `outliers whose auth_events are in a different room are correctly
rejected`, by validating that auth events are all from the same room and
not using rejected events for event auth.
|
|
This reverts commit dcedd1b6bf1e890ff425bdf1fcd8a2e0850778b5.
|
|
This fixes some edge cases where federation queue backoffs and
blacklisting weren't behaving as expected.
It also adds new tests for the federation queues to ensure their
behaviour continues to work correctly.
|
|
This adds support for tracking `m.relates_to`, as well as adding support
for the various `/room/{roomID}/relations/...` endpoints to the CS API.
|
|
history_visibility (#2787)
Sytest was using a wrong `history_visibility` for `invited`
(https://github.com/matrix-org/sytest/pull/1303), so `invited` was
passing for the wrong reason (-> defaulted to `shared`, as `invite`
wasn't understood).
This change now handles missing events like Synapse, if a server isn't
allowed to see the event, it gets a redacted version of it, making the
`get_missing_events` tests pass.
|
|
Implement behaviours for `m.read.private` receipts.
|
|
Improves the control flow of `GetStateDeltas` for clarity and possibly
also fixes a bug where duplicate state delta entries could be inserted
with different memberships instead of being correctly overridden by
`join`.
|
|
|
|
This ensures that the joined hosts in the federation API are correct
after the state is rewritten. This might fix some races around the time
of joining federated rooms.
|
|
Only sends errors if we're not retrying them in NATS.
Not sure if those should be scoped/tagged with something like "E2EE".
|
|
|
|
|
|
This allows us to apply history visibility without having to recalculate
it in the roomserver.
Unblocks https://github.com/matrix-org/complement/pull/495, fix missing
part of https://github.com/matrix-org/dendrite/issues/617
|
|
|
|
|
|
|
|
|
|
|
|
Changelog and version bump.
|
|
Fixes #2121, test added in
https://github.com/matrix-org/complement/pull/494
|
|
This reverts commit 8d8f4689a0c71f79051554e69fb9113592a4b2e4.
|
|
This ensures that the sync API notifier only wakes up a given user once
for a given stream position.
|
|
|
|
Adds tests for `QueryDeviceMessages` and also includes some
optimizations to reduce allocations in the DB layer.
|
|
|
|
Use the stream positions of the notifier, which might have advanced
since setting it at the beginning of the loop. This possibly helps in
reducing roundtrips to the SyncAPI, just because we didn't fetch the
latest data.
Also fixes a minor oversight in the receipts stream.
|
|
If the private key file is lost, it's often possible to retrieve the
public key from another server elsewhere, so we should make it possible
to configure it in that way.
|
|
The OTK count is
[required](https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysupload)
in responses to `/keys/upload`, so return those.
|
|
|
|
|
|
|
|
First attempt at removing empty fields from `/sync` responses. Needs
https://github.com/matrix-org/sytest/pull/1298 to keep Sytest happy.
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
|
|
Otherwise the sync API key change consumer wastes a lot of time trying
to wake up the notifiers for non-local users.
|
|
Many of these warnings are due to dead servers and are quite annoying when they fill up the logs.
|
|
|
|
This PR queries PostgreSQL for the `max_connections` and
`superuser_reserved_connections` settings and then ensures that
Dendrite's `max_open_conns` doesn't exceed the allowed value.
This is a really common source of configuration problems and can either
result in blocking queries or deadlocks, so it seems reasonable that we
complain as loudly as possible when it happens.
|
|
... to actually allow different languages. Fixes #2761
Binary size increases by ~1MB.
|
|
This gets rid of some expensive scans on `add_state_ids` and
`remove_state_ids`, turning them into much cheaper and faster index
scans instead.
|
|
room (#2762)
If we are already joined to the room then it shouldn't matter if you
were invited or not, so this looks like a bug.
|
|
|
|
|
|
|
|
|