mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-26 22:45:06 +00:00
core: allow starting chat without making SMP subscriptions (to use GET in NSE) (#745)
This commit is contained in:
committed by
GitHub
parent
051726702b
commit
7723e4ca7a
@@ -99,7 +99,7 @@ instance ToJSON HelpSection where
|
||||
data ChatCommand
|
||||
= ShowActiveUser
|
||||
| CreateActiveUser Profile
|
||||
| StartChat
|
||||
| StartChat {subscribeConnections :: Bool}
|
||||
| APIStopChat
|
||||
| APISetAppPhase AgentPhase
|
||||
| ResubscribeAllConnections
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user