aboutsummaryrefslogtreecommitdiff
path: root/syncapi/types
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-10-19 14:05:39 +0200
committerGitHub <noreply@github.com>2022-10-19 14:05:39 +0200
commite79bfd8fd55781783482cb45ae6d4e78062bb8ac (patch)
tree9b892d69efc71dd2259d04763037c23922cc68f3 /syncapi/types
parent8cbe14bd6d985ceb2f7c098548a3fbeedfce2d55 (diff)
Get state deltas without filters (#2810)
This makes the following changes: - get state deltas without the user supplied filter, so we can actually "calculate" state transitions - closes `stmt` when using SQLite - Adds presence for users who newly joined a room, even if the syncing user already knows about the presence status (should fix https://github.com/matrix-org/complement/pull/516)
Diffstat (limited to 'syncapi/types')
-rw-r--r--syncapi/types/provider.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/syncapi/types/provider.go b/syncapi/types/provider.go
index 378cafe9..9a533002 100644
--- a/syncapi/types/provider.go
+++ b/syncapi/types/provider.go
@@ -4,9 +4,10 @@ import (
"context"
"time"
- userapi "github.com/matrix-org/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/sirupsen/logrus"
+
+ userapi "github.com/matrix-org/dendrite/userapi/api"
)
type SyncRequest struct {
@@ -22,6 +23,8 @@ type SyncRequest struct {
// Updated by the PDU stream.
Rooms map[string]string
// Updated by the PDU stream.
+ MembershipChanges map[string]struct{}
+ // Updated by the PDU stream.
IgnoredUsers IgnoredUsers
}