mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-15 09:00:44 +00:00
cli: option to mark shown messages as read (off by default) (#3506)
* cli: option to mark shown messages as read (off by default) * fix tests * fix tests
This commit is contained in:
@@ -42,6 +42,7 @@ data ChatOpts = ChatOpts
|
||||
allowInstantFiles :: Bool,
|
||||
autoAcceptFileSize :: Integer,
|
||||
muteNotifications :: Bool,
|
||||
markRead :: Bool,
|
||||
maintenance :: Bool
|
||||
}
|
||||
|
||||
@@ -268,6 +269,12 @@ chatOptsP appDir defaultDbFileName = do
|
||||
( long "mute"
|
||||
<> help "Mute notifications"
|
||||
)
|
||||
markRead <-
|
||||
switch
|
||||
( long "mark-read"
|
||||
<> short 'r'
|
||||
<> help "Mark shown messages as read"
|
||||
)
|
||||
maintenance <-
|
||||
switch
|
||||
( long "maintenance"
|
||||
@@ -286,6 +293,7 @@ chatOptsP appDir defaultDbFileName = do
|
||||
allowInstantFiles,
|
||||
autoAcceptFileSize,
|
||||
muteNotifications,
|
||||
markRead,
|
||||
maintenance
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user