core: support closing/re-opening store on chat stop/start (#3132)

* core: support closing/re-opening store on chat stop/start

* update .nix refs

* kotlin: types

* add test

* update simplexmq
This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2023-09-27 15:26:03 +01:00
1 parent 8709ad6ff3
commit 3c7fc6b0ee
11 files changed
+69 -31

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ runSimplexChat :: ChatOpts -> User -> ChatController -> (User -> ChatController
runSimplexChat ChatOpts {maintenance} u cc chat
| maintenance = wait =<< async (chat u cc)
| otherwise = do
a1 <- runReaderT (startChatController True True True) cc
a1 <- runReaderT (startChatController defChatCtrlCfg) cc
a2 <- async $ chat u cc
waitEither_ a1 a2