core: allow starting chat without making SMP subscriptions (to use GET in NSE) (#745)

This commit is contained in:
Evgeny Poberezkin
2022-06-21 11:25:12 +01:00
committed by GitHub
parent 051726702b
commit 7723e4ca7a
3 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ instance ToJSON HelpSection where
data ChatCommand
= ShowActiveUser
| CreateActiveUser Profile
| StartChat
| StartChat {subscribeConnections :: Bool}
| APIStopChat
| APISetAppPhase AgentPhase
| ResubscribeAllConnections
+1 -1
View File
@@ -33,7 +33,7 @@ runSimplexChat ChatOpts {maintenance} u cc chat
| maintenance = wait =<< async (chat u cc)
| otherwise = do
a1 <- async $ chat u cc
a2 <- runReaderT (startChatController u) cc
a2 <- runReaderT (startChatController u True) cc
waitEither_ a1 a2
sendChatCmd :: ChatController -> String -> IO ChatResponse