diff options
author | Kegsay <kegan@matrix.org> | 2020-07-24 10:33:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 10:33:41 +0100 |
commit | af5b4d1f6bb0c3479331da965211d6175b012c9e (patch) | |
tree | dab3f5299cbdb5dd3a8a4e11daaea4c54b206e02 /currentstateserver/storage/interface.go | |
parent | 98f2f09bb46f8bd126214f7874065d6b311bdeba (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/storage/interface.go')
-rw-r--r-- | currentstateserver/storage/interface.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/currentstateserver/storage/interface.go b/currentstateserver/storage/interface.go index 1c4635be..8deaa348 100644 --- a/currentstateserver/storage/interface.go +++ b/currentstateserver/storage/interface.go @@ -37,6 +37,6 @@ type Database interface { GetBulkStateContent(ctx context.Context, roomIDs []string, tuples []gomatrixserverlib.StateKeyTuple, allowWildcards bool) ([]tables.StrippedEvent, error) // Redact a state event RedactEvent(ctx context.Context, redactedEventID string, redactedBecause gomatrixserverlib.HeaderedEvent) error - // JoinedUsersSetInRooms returns all joined users in the rooms given. - JoinedUsersSetInRooms(ctx context.Context, roomIDs []string) ([]string, error) + // JoinedUsersSetInRooms returns all joined users in the rooms given, along with the count of how many times they appear. + JoinedUsersSetInRooms(ctx context.Context, roomIDs []string) (map[string]int, error) } |