aboutsummaryrefslogtreecommitdiff
path: root/currentstateserver/api/api.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-07-24 10:33:41 +0100
committerGitHub <noreply@github.com>2020-07-24 10:33:41 +0100
commitaf5b4d1f6bb0c3479331da965211d6175b012c9e (patch)
treedab3f5299cbdb5dd3a8a4e11daaea4c54b206e02 /currentstateserver/api/api.go
parent98f2f09bb46f8bd126214f7874065d6b311bdeba (diff)
Modify QuerySharedUsers to handle counts/include/exclude (#1219)
* Modify QuerySharedUsers to handle counts/include/exclude We will need this functionality when working out whether to send device list changes to users who have joined/left a room. * Linting
Diffstat (limited to 'currentstateserver/api/api.go')
-rw-r--r--currentstateserver/api/api.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/currentstateserver/api/api.go b/currentstateserver/api/api.go
index 520ce8d6..b778acb2 100644
--- a/currentstateserver/api/api.go
+++ b/currentstateserver/api/api.go
@@ -36,11 +36,13 @@ type CurrentStateInternalAPI interface {
}
type QuerySharedUsersRequest struct {
- UserID string
+ UserID string
+ ExcludeRoomIDs []string
+ IncludeRoomIDs []string
}
type QuerySharedUsersResponse struct {
- UserIDs []string
+ UserIDsToCount map[string]int
}
type QueryRoomsForUserRequest struct {