aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-04-07 16:08:19 +0200
committerGitHub <noreply@github.com>2022-04-07 15:08:19 +0100
commit60ee7eef4c8ea7e17135d52d3dde9be0b54e2f55 (patch)
tree5e0330d4fbdac2f67e67338c445c4d8a3b0b68ae /internal
parent99ef5472959a4e4d49bd9760fcb8b3872e21fa71 (diff)
Add possibility to ignore users (#2329)
* Add ignore users * Ignore users in pushrules Add passing tests * Update sytest lists * Store ignore knowledge in the sync API * Fix copyrights Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'internal')
-rw-r--r--internal/eventutil/types.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/eventutil/types.go b/internal/eventutil/types.go
index 17861d6c..afc62d8c 100644
--- a/internal/eventutil/types.go
+++ b/internal/eventutil/types.go
@@ -17,6 +17,8 @@ package eventutil
import (
"errors"
"strconv"
+
+ "github.com/matrix-org/dendrite/syncapi/types"
)
// ErrProfileNoExists is returned when trying to lookup a user's profile that
@@ -26,9 +28,10 @@ var ErrProfileNoExists = errors.New("no known profile for given user ID")
// AccountData represents account data sent from the client API server to the
// sync API server
type AccountData struct {
- RoomID string `json:"room_id"`
- Type string `json:"type"`
- ReadMarker *ReadMarkerJSON `json:"read_marker,omitempty"` // optional
+ RoomID string `json:"room_id"`
+ Type string `json:"type"`
+ ReadMarker *ReadMarkerJSON `json:"read_marker,omitempty"` // optional
+ IgnoredUsers *types.IgnoredUsers `json:"ignored_users,omitempty"` // optional
}
type ReadMarkerJSON struct {