core: manage calls for all users (#1748)

This commit is contained in:
JRoberts authored and GitHub committed 2023-01-16 15:06:03 +04:00
1 parent a040fa65bb
commit 9dc6c1327f
8 files changed
+52 -45

No files matched your search

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