core: support combining store functions in one transaction (#740)

* refactor store functions (WIP - does not compile yet)

* update chat

* update simplexmq
This commit is contained in:
Evgeny Poberezkin
2022-06-18 20:06:13 +01:00
committed by GitHub
parent b2a523c3fe
commit 4bf5125c51
8 changed files with 1712 additions and 1914 deletions

View File

@@ -85,7 +85,7 @@ defaultMobileConfig =
type CJSONString = CString
getActiveUser_ :: SQLiteStore -> IO (Maybe User)
getActiveUser_ st = find activeUser <$> getUsers st
getActiveUser_ st = find activeUser <$> withTransaction st getUsers
chatInit :: String -> IO ChatController
chatInit dbFilePrefix = do