galley-0.83.0: Conversations
Safe HaskellSafe-Inferred
LanguageGHC2021

Galley.Intra.User

Synopsis

Documentation

getConnections :: [UserId] -> Maybe [Qualified UserId] -> Maybe Relation -> App [ConnectionStatusV2] Source #

Get statuses of all connections between two groups of users (the usual pattern is to check all connections from one user to several, or from several users to one).

When a connection does not exist, it is skipped. Calls getConnectionsStatus.

getConnectionsUnqualified :: [UserId] -> Maybe [UserId] -> Maybe Relation -> App [ConnectionStatus] Source #

Get statuses of all connections between two groups of users (the usual pattern is to check all connections from one user to several, or from several users to one).

When a connection does not exist, it is skipped. Calls getConnectionsStatusUnqualified.

chunkify :: forall m key a. (Monad m, Monoid a) => ([key] -> m a) -> [key] -> m a Source #

URLs with more than ~160 uids produce 400 responses, because HAProxy has a URL length limit of ~6500 (determined experimentally). 100 is a conservative setting. A uid contributes about 36+3 characters (+3 for the comma separator) to the overall URL length.