| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.Chat.Store.Direct
Synopsis
- updateContactLDN_ :: Connection -> User -> Int64 -> ContactName -> ContactName -> UTCTime -> IO ()
- updateContactProfile_ :: Connection -> UserId -> ProfileId -> Profile -> IO ()
- updateContactProfile_' :: Connection -> UserId -> ProfileId -> Profile -> UTCTime -> IO ()
- updateMemberContactProfileReset_' :: Connection -> UserId -> ProfileId -> Profile -> UTCTime -> IO ()
- updateMemberContactProfileReset_ :: Connection -> UserId -> ProfileId -> Profile -> IO ()
- updateMemberContactProfile_ :: Connection -> UserId -> ProfileId -> Profile -> IO ()
- updateMemberContactProfile_' :: Connection -> UserId -> ProfileId -> Profile -> UTCTime -> IO ()
- deleteContactProfile_ :: Connection -> UserId -> ContactId -> IO ()
- deleteUnusedProfile_ :: Connection -> UserId -> ProfileId -> IO ()
- getPendingContactConnection :: Connection -> UserId -> Int64 -> ExceptT StoreError IO PendingContactConnection
- deletePendingContactConnection :: Connection -> UserId -> Int64 -> IO ()
- createDirectConnection' :: Connection -> UserId -> ConnId -> CreatedLinkInvitation -> Maybe ContactId -> ConnStatus -> Maybe Profile -> SubscriptionMode -> VersionChat -> PQSupport -> IO Connection
- createDirectConnection :: Connection -> User -> ConnId -> CreatedLinkInvitation -> Maybe ContactId -> ConnStatus -> Maybe Profile -> SubscriptionMode -> VersionChat -> PQSupport -> IO PendingContactConnection
- createIncognitoProfile :: Connection -> User -> Profile -> IO Int64
- createConnReqConnection :: Connection -> UserId -> ConnId -> Maybe PreparedChatEntity -> ConnReqContact -> ConnReqUriHash -> Maybe ShortLinkContact -> XContactId -> Maybe Profile -> Maybe GroupLinkId -> SubscriptionMode -> VersionChat -> PQSupport -> IO Connection
- setPreparedGroupStartedConnection :: Connection -> GroupId -> IO ()
- getProfileById :: Connection -> UserId -> Int64 -> ExceptT StoreError IO LocalProfile
- getConnReqContactXContactId :: Connection -> VersionRangeChat -> User -> ConnReqUriHash -> ConnReqUriHash -> IO (Either (Maybe Connection) Contact)
- createPreparedContact :: Connection -> VersionRangeChat -> User -> Profile -> ACreatedConnLink -> Maybe SharedMsgId -> ExceptT StoreError IO Contact
- updatePreparedContactUser :: Connection -> VersionRangeChat -> User -> Contact -> User -> ExceptT StoreError IO Contact
- createDirectContact :: Connection -> VersionRangeChat -> User -> Connection -> Profile -> ExceptT StoreError IO Contact
- deleteContactConnections :: Connection -> User -> Contact -> IO ()
- deleteContactFiles :: Connection -> User -> Contact -> IO ()
- deleteContact :: Connection -> User -> Contact -> ExceptT StoreError IO ()
- deleteContactWithoutGroups :: Connection -> User -> Contact -> ExceptT StoreError IO ()
- getDeletedContacts :: Connection -> VersionRangeChat -> User -> IO [Contact]
- getContactByName :: Connection -> VersionRangeChat -> User -> ContactName -> ExceptT StoreError IO Contact
- getContact :: Connection -> VersionRangeChat -> User -> Int64 -> ExceptT StoreError IO Contact
- getContactViaShortLinkToConnect :: forall (c :: ConnectionMode). ConnectionModeI c => Connection -> VersionRangeChat -> User -> ConnShortLink c -> ExceptT StoreError IO (Maybe (ConnectionRequestUri c, Contact))
- getContactIdByName :: Connection -> User -> ContactName -> ExceptT StoreError IO Int64
- updateContactProfile :: Connection -> User -> Contact -> Profile -> ExceptT StoreError IO Contact
- updateContactUserPreferences :: Connection -> User -> Contact -> Preferences -> IO Contact
- updateContactAlias :: Connection -> UserId -> Contact -> LocalAlias -> IO Contact
- updateContactConnectionAlias :: Connection -> UserId -> PendingContactConnection -> LocalAlias -> IO PendingContactConnection
- updatePCCIncognito :: Connection -> User -> PendingContactConnection -> Maybe ProfileId -> Maybe ShortLinkInvitation -> IO PendingContactConnection
- deletePCCIncognitoProfile :: Connection -> User -> ProfileId -> IO ()
- updateContactUnreadChat :: Connection -> User -> Contact -> Bool -> IO ()
- setUserChatsRead :: Connection -> User -> IO ()
- updateContactStatus :: Connection -> User -> Contact -> ContactStatus -> IO Contact
- updateGroupUnreadChat :: Connection -> User -> GroupInfo -> Bool -> IO ()
- setConnectionVerified :: Connection -> User -> Int64 -> Maybe Text -> IO ()
- incAuthErrCounter :: Connection -> User -> Connection -> IO Int
- setAuthErrCounter :: Connection -> User -> Connection -> Int -> IO ()
- incQuotaErrCounter :: Connection -> User -> Connection -> IO Int
- setQuotaErrCounter :: Connection -> User -> Connection -> Int -> IO ()
- getUserContacts :: Connection -> VersionRangeChat -> User -> IO [Contact]
- getUserContactLinkIdByCReq :: Connection -> Int64 -> ExceptT StoreError IO (Maybe Int64)
- getContactRequest :: Connection -> User -> Int64 -> ExceptT StoreError IO UserContactRequest
- getContactRequest' :: Connection -> User -> Int64 -> IO (Maybe UserContactRequest)
- getBusinessContactRequest :: Connection -> User -> GroupId -> IO (Maybe UserContactRequest)
- getContactRequestIdByName :: Connection -> UserId -> ContactName -> ExceptT StoreError IO Int64
- deleteContactRequest :: Connection -> User -> Int64 -> IO ()
- createContactFromRequest :: Connection -> User -> Maybe Int64 -> ConnId -> VersionChat -> VersionRangeChat -> ContactName -> ProfileId -> Profile -> Maybe XContactId -> Maybe IncognitoProfile -> SubscriptionMode -> PQSupport -> Bool -> IO (Contact, Connection)
- createAcceptedContactConn :: Connection -> User -> Maybe Int64 -> ContactId -> ConnId -> VersionChat -> VersionRangeChat -> PQSupport -> Maybe IncognitoProfile -> SubscriptionMode -> UTCTime -> IO Connection
- updateContactAccepted :: Connection -> User -> Contact -> Bool -> IO ()
- getUserByContactRequestId :: Connection -> Int64 -> ExceptT StoreError IO User
- getContactConnections :: Connection -> VersionRangeChat -> UserId -> Contact -> IO [Connection]
- getConnectionById :: Connection -> VersionRangeChat -> User -> Int64 -> ExceptT StoreError IO Connection
- getConnectionsContacts :: Connection -> [ConnId] -> IO [ContactRef]
- updateConnectionStatus :: Connection -> Connection -> ConnStatus -> IO ()
- updateConnectionStatusFromTo :: Connection -> Connection -> ConnStatus -> ConnStatus -> IO Connection
- updateContactSettings :: Connection -> User -> Int64 -> ChatSettings -> IO ()
- setConnConnReqInv :: Connection -> User -> Int64 -> ConnReqInvitation -> IO ()
- resetContactConnInitiated :: Connection -> User -> Connection -> IO ()
- setContactCustomData :: Connection -> User -> Contact -> Maybe CustomData -> IO ()
- setContactUIThemes :: Connection -> User -> Contact -> Maybe UIThemeEntityOverrides -> IO ()
- setContactChatDeleted :: Connection -> User -> Contact -> Bool -> IO ()
- getDirectChatTags :: Connection -> ContactId -> IO [ChatTagId]
- addDirectChatTags :: Connection -> Contact -> IO Contact
- updateDirectChatTags :: Connection -> ContactId -> [ChatTagId] -> IO ()
- setDirectChatTTL :: Connection -> ContactId -> Maybe Int64 -> IO ()
- getDirectChatTTL :: Connection -> ContactId -> IO (Maybe Int64)
- getUserContactsToExpire :: Connection -> User -> Int64 -> IO [ContactId]
Documentation
updateContactLDN_ :: Connection -> User -> Int64 -> ContactName -> ContactName -> UTCTime -> IO () Source #
updateContactProfile_ :: Connection -> UserId -> ProfileId -> Profile -> IO () Source #
updateContactProfile_' :: Connection -> UserId -> ProfileId -> Profile -> UTCTime -> IO () Source #
updateMemberContactProfileReset_' :: Connection -> UserId -> ProfileId -> Profile -> UTCTime -> IO () Source #
updateMemberContactProfileReset_ :: Connection -> UserId -> ProfileId -> Profile -> IO () Source #
updateMemberContactProfile_ :: Connection -> UserId -> ProfileId -> Profile -> IO () Source #
updateMemberContactProfile_' :: Connection -> UserId -> ProfileId -> Profile -> UTCTime -> IO () Source #
deleteContactProfile_ :: Connection -> UserId -> ContactId -> IO () Source #
deleteUnusedProfile_ :: Connection -> UserId -> ProfileId -> IO () Source #
Contacts and connections functions
getPendingContactConnection :: Connection -> UserId -> Int64 -> ExceptT StoreError IO PendingContactConnection Source #
deletePendingContactConnection :: Connection -> UserId -> Int64 -> IO () Source #
createDirectConnection' :: Connection -> UserId -> ConnId -> CreatedLinkInvitation -> Maybe ContactId -> ConnStatus -> Maybe Profile -> SubscriptionMode -> VersionChat -> PQSupport -> IO Connection Source #
createDirectConnection :: Connection -> User -> ConnId -> CreatedLinkInvitation -> Maybe ContactId -> ConnStatus -> Maybe Profile -> SubscriptionMode -> VersionChat -> PQSupport -> IO PendingContactConnection Source #
createIncognitoProfile :: Connection -> User -> Profile -> IO Int64 Source #
createConnReqConnection :: Connection -> UserId -> ConnId -> Maybe PreparedChatEntity -> ConnReqContact -> ConnReqUriHash -> Maybe ShortLinkContact -> XContactId -> Maybe Profile -> Maybe GroupLinkId -> SubscriptionMode -> VersionChat -> PQSupport -> IO Connection Source #
setPreparedGroupStartedConnection :: Connection -> GroupId -> IO () Source #
getProfileById :: Connection -> UserId -> Int64 -> ExceptT StoreError IO LocalProfile Source #
getConnReqContactXContactId :: Connection -> VersionRangeChat -> User -> ConnReqUriHash -> ConnReqUriHash -> IO (Either (Maybe Connection) Contact) Source #
createPreparedContact :: Connection -> VersionRangeChat -> User -> Profile -> ACreatedConnLink -> Maybe SharedMsgId -> ExceptT StoreError IO Contact Source #
updatePreparedContactUser :: Connection -> VersionRangeChat -> User -> Contact -> User -> ExceptT StoreError IO Contact Source #
createDirectContact :: Connection -> VersionRangeChat -> User -> Connection -> Profile -> ExceptT StoreError IO Contact Source #
deleteContactConnections :: Connection -> User -> Contact -> IO () Source #
deleteContactFiles :: Connection -> User -> Contact -> IO () Source #
deleteContact :: Connection -> User -> Contact -> ExceptT StoreError IO () Source #
deleteContactWithoutGroups :: Connection -> User -> Contact -> ExceptT StoreError IO () Source #
getDeletedContacts :: Connection -> VersionRangeChat -> User -> IO [Contact] Source #
getContactByName :: Connection -> VersionRangeChat -> User -> ContactName -> ExceptT StoreError IO Contact Source #
getContact :: Connection -> VersionRangeChat -> User -> Int64 -> ExceptT StoreError IO Contact Source #
getContactViaShortLinkToConnect :: forall (c :: ConnectionMode). ConnectionModeI c => Connection -> VersionRangeChat -> User -> ConnShortLink c -> ExceptT StoreError IO (Maybe (ConnectionRequestUri c, Contact)) Source #
getContactIdByName :: Connection -> User -> ContactName -> ExceptT StoreError IO Int64 Source #
updateContactProfile :: Connection -> User -> Contact -> Profile -> ExceptT StoreError IO Contact Source #
updateContactUserPreferences :: Connection -> User -> Contact -> Preferences -> IO Contact Source #
updateContactAlias :: Connection -> UserId -> Contact -> LocalAlias -> IO Contact Source #
updateContactConnectionAlias :: Connection -> UserId -> PendingContactConnection -> LocalAlias -> IO PendingContactConnection Source #
updatePCCIncognito :: Connection -> User -> PendingContactConnection -> Maybe ProfileId -> Maybe ShortLinkInvitation -> IO PendingContactConnection Source #
deletePCCIncognitoProfile :: Connection -> User -> ProfileId -> IO () Source #
updateContactUnreadChat :: Connection -> User -> Contact -> Bool -> IO () Source #
setUserChatsRead :: Connection -> User -> IO () Source #
updateContactStatus :: Connection -> User -> Contact -> ContactStatus -> IO Contact Source #
updateGroupUnreadChat :: Connection -> User -> GroupInfo -> Bool -> IO () Source #
setConnectionVerified :: Connection -> User -> Int64 -> Maybe Text -> IO () Source #
incAuthErrCounter :: Connection -> User -> Connection -> IO Int Source #
setAuthErrCounter :: Connection -> User -> Connection -> Int -> IO () Source #
incQuotaErrCounter :: Connection -> User -> Connection -> IO Int Source #
setQuotaErrCounter :: Connection -> User -> Connection -> Int -> IO () Source #
getUserContacts :: Connection -> VersionRangeChat -> User -> IO [Contact] Source #
getUserContactLinkIdByCReq :: Connection -> Int64 -> ExceptT StoreError IO (Maybe Int64) Source #
getContactRequest :: Connection -> User -> Int64 -> ExceptT StoreError IO UserContactRequest Source #
getContactRequest' :: Connection -> User -> Int64 -> IO (Maybe UserContactRequest) Source #
getBusinessContactRequest :: Connection -> User -> GroupId -> IO (Maybe UserContactRequest) Source #
getContactRequestIdByName :: Connection -> UserId -> ContactName -> ExceptT StoreError IO Int64 Source #
deleteContactRequest :: Connection -> User -> Int64 -> IO () Source #
createContactFromRequest :: Connection -> User -> Maybe Int64 -> ConnId -> VersionChat -> VersionRangeChat -> ContactName -> ProfileId -> Profile -> Maybe XContactId -> Maybe IncognitoProfile -> SubscriptionMode -> PQSupport -> Bool -> IO (Contact, Connection) Source #
createAcceptedContactConn :: Connection -> User -> Maybe Int64 -> ContactId -> ConnId -> VersionChat -> VersionRangeChat -> PQSupport -> Maybe IncognitoProfile -> SubscriptionMode -> UTCTime -> IO Connection Source #
updateContactAccepted :: Connection -> User -> Contact -> Bool -> IO () Source #
getUserByContactRequestId :: Connection -> Int64 -> ExceptT StoreError IO User Source #
getContactConnections :: Connection -> VersionRangeChat -> UserId -> Contact -> IO [Connection] Source #
getConnectionById :: Connection -> VersionRangeChat -> User -> Int64 -> ExceptT StoreError IO Connection Source #
getConnectionsContacts :: Connection -> [ConnId] -> IO [ContactRef] Source #
updateConnectionStatus :: Connection -> Connection -> ConnStatus -> IO () Source #
updateConnectionStatusFromTo :: Connection -> Connection -> ConnStatus -> ConnStatus -> IO Connection Source #
updateContactSettings :: Connection -> User -> Int64 -> ChatSettings -> IO () Source #
setConnConnReqInv :: Connection -> User -> Int64 -> ConnReqInvitation -> IO () Source #
resetContactConnInitiated :: Connection -> User -> Connection -> IO () Source #
setContactCustomData :: Connection -> User -> Contact -> Maybe CustomData -> IO () Source #
setContactUIThemes :: Connection -> User -> Contact -> Maybe UIThemeEntityOverrides -> IO () Source #
setContactChatDeleted :: Connection -> User -> Contact -> Bool -> IO () Source #
getDirectChatTags :: Connection -> ContactId -> IO [ChatTagId] Source #
addDirectChatTags :: Connection -> Contact -> IO Contact Source #
updateDirectChatTags :: Connection -> ContactId -> [ChatTagId] -> IO () Source #
setDirectChatTTL :: Connection -> ContactId -> Maybe Int64 -> IO () Source #
getDirectChatTTL :: Connection -> ContactId -> IO (Maybe Int64) Source #
getUserContactsToExpire :: Connection -> User -> Int64 -> IO [ContactId] Source #