Skip to content

Commit

Permalink
Tweak detail.
Browse files Browse the repository at this point in the history
  • Loading branch information
fisx committed Jun 21, 2021
1 parent dde06ab commit e16a0bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/galley/src/Galley/API/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,8 @@ allLegalholdConsentGiven uids = do
-- For this feature the implementation is more efficient. Being part of
-- a whitelisted team is equivalent to have given consent to be in a
-- conversation with user under legalhold.
flip allM (chunksOf 32 uids) $ \uidsPage -> do
teamsPage <- nub . Map.elems <$> Data.usersTeams uidsPage
allM isTeamLegalholdWhitelisted teamsPage
tids <- forM (chunksOf 32 uids) $ \uidsPage -> Map.elems <$> Data.usersTeams uidsPage
allM isTeamLegalholdWhitelisted (nub $ mconcat tids)

-- | Notify remote users of being added to a conversation
updateRemoteConversationMemberships :: [RemoteMember] -> UserId -> UTCTime -> Data.Conversation -> [LocalMember] -> [RemoteMember] -> Galley ()
Expand Down

0 comments on commit e16a0bc

Please sign in to comment.