mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-20 18:53:28 +00:00
diff cosmetics
This commit is contained in:
@@ -709,18 +709,19 @@ data ChatCommand
|
||||
deriving (Show)
|
||||
|
||||
data PlanResolveMode
|
||||
= PRMUnknown -- only resolve if chat is unknown (default)
|
||||
= PRMAll -- always resolve, also known chats
|
||||
| PRMUnknown -- only resolve if chat is unknown (default)
|
||||
| PRMNever -- do not resolve links and names, only do local search
|
||||
| PRMAll -- always resolve, also known chats
|
||||
deriving (Eq, Show)
|
||||
|
||||
planResolveModeP :: A.Parser PlanResolveMode
|
||||
planResolveModeP =
|
||||
A.takeTill (== ' ') >>= \case
|
||||
"all" -> pure PRMAll
|
||||
"on" -> pure PRMAll
|
||||
"unknown" -> pure PRMUnknown
|
||||
"off" -> pure PRMUnknown
|
||||
"never" -> pure PRMNever
|
||||
"all" -> pure PRMAll
|
||||
_ -> fail "bad PlanResolveMode"
|
||||
|
||||
data CommandSource
|
||||
|
||||
Reference in New Issue
Block a user