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 { if err != nil {
return err return err
} }
for _, roomID := range req.IncludeRoomIDs { roomIDs = append(roomIDs, req.IncludeRoomIDs...)
roomIDs = append(roomIDs, roomID)
}
excludeMap := make(map[string]bool) excludeMap := make(map[string]bool)
for _, roomID := range req.ExcludeRoomIDs { for _, roomID := range req.ExcludeRoomIDs {
excludeMap[roomID] = true excludeMap[roomID] = true