ios, core: pull to reconnect relays (#2652)

* ios, core: pull to reconnect relays

* update simplexmq

* update texts
This commit is contained in:
Evgeny Poberezkin
2023-07-05 09:09:56 +01:00
committed by GitHub
parent c35ce29cc1
commit 5d9b6266ea
8 changed files with 29 additions and 3 deletions
+2
View File
@@ -1084,6 +1084,7 @@ processChatCommand = \case
APISetNetworkConfig cfg -> withUser' $ \_ -> withAgent (`setNetworkConfig` cfg) >> ok_
APIGetNetworkConfig -> withUser' $ \_ ->
CRNetworkConfig <$> withAgent getNetworkConfig
ReconnectAllServers -> withUser' $ \_ -> withAgent reconnectAllServers >> ok_
APISetChatSettings (ChatRef cType chatId) chatSettings -> withUser $ \user -> case cType of
CTDirect -> do
ct <- withStore $ \db -> do
@@ -4908,6 +4909,7 @@ chatCommandP =
"/_network " *> (APISetNetworkConfig <$> jsonP),
("/network " <|> "/net ") *> (APISetNetworkConfig <$> netCfgP),
("/network" <|> "/net") $> APIGetNetworkConfig,
"/reconnect" $> ReconnectAllServers,
"/_settings " *> (APISetChatSettings <$> chatRefP <* A.space <*> jsonP),
"/_info #" *> (APIGroupMemberInfo <$> A.decimal <* A.space <*> A.decimal),
"/_info @" *> (APIContactInfo <$> A.decimal),