Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- addMembers :: ToUserRole a => ConvId -> UserList a -> Client ([LocalMember], [RemoteMember])
- members :: ConvId -> Client [LocalMember]
- allMembers :: Client [LocalMember]
- toMember :: (UserId, Maybe ServiceId, Maybe ProviderId, Maybe MemberStatus, Maybe MutedStatus, Maybe Text, Maybe Bool, Maybe Text, Maybe Bool, Maybe Text, Maybe RoleName) -> Maybe LocalMember
- lookupRemoteMembers :: ConvId -> Client [RemoteMember]
- removeMembersFromLocalConv :: ConvId -> UserList UserId -> Client ()
- toMemberStatus :: (Maybe MutedStatus, Maybe Text, Maybe Bool, Maybe Text, Maybe Bool, Maybe Text) -> MemberStatus
- interpretMemberStoreToCassandra :: (Member (Embed IO) r, Member (Input ClientState) r, Member TinyLog r) => Sem (MemberStore ': r) a -> Sem r a
Documentation
addMembers :: ToUserRole a => ConvId -> UserList a -> Client ([LocalMember], [RemoteMember]) Source #
Add members to a local conversation. Conversation is local, so we can add any member to it (including remote ones). When the role is not specified, it defaults to admin. Please make sure the conversation doesn't exceed the maximum size!
allMembers :: Client [LocalMember] Source #
toMember :: (UserId, Maybe ServiceId, Maybe ProviderId, Maybe MemberStatus, Maybe MutedStatus, Maybe Text, Maybe Bool, Maybe Text, Maybe Bool, Maybe Text, Maybe RoleName) -> Maybe LocalMember Source #
lookupRemoteMembers :: ConvId -> Client [RemoteMember] Source #
toMemberStatus :: (Maybe MutedStatus, Maybe Text, Maybe Bool, Maybe Text, Maybe Bool, Maybe Text) -> MemberStatus Source #
interpretMemberStoreToCassandra :: (Member (Embed IO) r, Member (Input ClientState) r, Member TinyLog r) => Sem (MemberStore ': r) a -> Sem r a Source #