mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-25 14:43:16 +00:00
asynchronously subscribe to user connections (#310)
* asynchronously subscribe to user connections * send subscription status summaries to view/api * refactor * add help messages in summaries * update simplexmq * rename config field Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
1 parent
bbab069bcd
commit
5961b7d951
10 files changed
+93
-41
No files matched your search
@@ -21,7 +21,8 @@ import System.FilePath (combine)
|
||||
data ChatOpts = ChatOpts
|
||||
{ dbFilePrefix :: String,
|
||||
smpServers :: NonEmpty SMPServer,
|
||||
logging :: Bool
|
||||
logConnections :: Bool,
|
||||
logAgent :: Bool
|
||||
}
|
||||
|
||||
defaultSMPServers :: NonEmpty SMPServer
|
||||
@@ -55,9 +56,14 @@ chatOpts appDir =
|
||||
<> value defaultSMPServers
|
||||
)
|
||||
<*> switch
|
||||
( long "log"
|
||||
( long "connections"
|
||||
<> short 'c'
|
||||
<> help "Log every contact and group connection on start"
|
||||
)
|
||||
<*> switch
|
||||
( long "log-agent"
|
||||
<> short 'l'
|
||||
<> help "Enable logging"
|
||||
<> help "Enable logs from SMP agent"
|
||||
)
|
||||
where
|
||||
defaultDbFilePath = combine appDir "simplex_v1"
|
||||
|
||||
Reference in new issue
Block a user