mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-31 09:46:03 +00:00
* core: option to show group as sender of chat item (for the initial items, e.g. welcome message) * add chat item to contact request chats * return AChat for prepared chats and contact requests * update iOS api types, show prepared contact as blue, show preview info when content message is not available (previously was showing feature item) * ios: remove ContactType * ios: show group as sender, fix avatar not showing when member message sequence starts with merged items * ios: update compose UI for all connection scenarios * address settings * ios: address settings UI * fix tests * fix tests 2 * ios: fix minor issues
33 lines
978 B
Haskell
33 lines
978 B
Haskell
{-# LANGUAGE CPP #-}
|
|
|
|
module Simplex.Chat.Store
|
|
( DBStore,
|
|
StoreError (..),
|
|
ChatLockEntity (..),
|
|
UserMsgReceiptSettings (..),
|
|
UserContactLink (..),
|
|
GroupLink (..),
|
|
GroupLinkInfo (..),
|
|
AddressSettings (..),
|
|
AutoAccept (..),
|
|
createChatStore,
|
|
migrations, -- used in tests
|
|
withTransaction,
|
|
)
|
|
where
|
|
|
|
import Simplex.Chat.Store.Groups (GroupLink (..))
|
|
import Simplex.Chat.Store.Profiles
|
|
import Simplex.Chat.Store.Shared
|
|
import Simplex.Messaging.Agent.Store.Common (DBStore (..), withTransaction)
|
|
import Simplex.Messaging.Agent.Store.Interface (DBOpts, createDBStore)
|
|
import Simplex.Messaging.Agent.Store.Shared (MigrationConfirmation, MigrationError)
|
|
#if defined(dbPostgres)
|
|
import Simplex.Chat.Store.Postgres.Migrations
|
|
#else
|
|
import Simplex.Chat.Store.SQLite.Migrations
|
|
#endif
|
|
|
|
createChatStore :: DBOpts -> MigrationConfirmation -> IO (Either MigrationError DBStore)
|
|
createChatStore dbCreateOpts = createDBStore dbCreateOpts migrations
|