mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 17:13:10 +00:00
core: tests for operators api, CLI command to update operators (#5226)
This commit is contained in:
1 parent
bab63d8f27
commit
49d1b26bba
6 files changed
+98
-15
No files matched your search
@@ -192,6 +192,14 @@ data ServerOperator' s = ServerOperator
|
||||
}
|
||||
deriving (Show)
|
||||
|
||||
data ServerOperatorRoles = ServerOperatorRoles
|
||||
{ operatorId' :: Int64,
|
||||
enabled' :: Bool,
|
||||
smpRoles' :: ServerRoles,
|
||||
xftpRoles' :: ServerRoles
|
||||
}
|
||||
deriving (Show)
|
||||
|
||||
operatorRoles :: UserProtocol p => SProtocolType p -> ServerOperator -> ServerRoles
|
||||
operatorRoles p op = case p of
|
||||
SPSMP -> smpRoles op
|
||||
|
||||
Reference in new issue
Block a user