simplex-chat-6.5.0.7
Safe HaskellNone
LanguageHaskell2010

Simplex.Chat.Store.Direct

Synopsis

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 #

getProfileById :: Connection -> UserId -> Int64 -> ExceptT StoreError IO LocalProfile Source #

createPreparedContact :: Connection -> VersionRangeChat -> User -> Profile -> ACreatedConnLink -> Maybe SharedMsgId -> 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 #

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 #

updateContactAlias :: Connection -> UserId -> Contact -> LocalAlias -> IO Contact Source #

deletePCCIncognitoProfile :: Connection -> User -> ProfileId -> IO () Source #

updateContactUnreadChat :: Connection -> User -> Contact -> Bool -> IO () Source #

setUserChatsRead :: Connection -> User -> IO () 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 #

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 #

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 #