This commit is contained in:
Kegan Dougal 2020-07-24 10:22:24 +01:00
parent b0baed82df
commit 21ba63f767

View file

@ -74,9 +74,7 @@ func (a *CurrentStateInternalAPI) QuerySharedUsers(ctx context.Context, req *api
if err != nil {
return err
}
for _, roomID := range req.IncludeRoomIDs {
roomIDs = append(roomIDs, roomID)
}
roomIDs = append(roomIDs, req.IncludeRoomIDs...)
excludeMap := make(map[string]bool)
for _, roomID := range req.ExcludeRoomIDs {
excludeMap[roomID] = true