mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-25 16:24:27 +00:00
core: add commands that will not be forwarded to connected mobile (#3398)
* core: add commands that will not be forwarded to connected mobile * fail if command that must be executed locally sent to remote host
This commit is contained in:
committed by
GitHub
parent
d9031cb209
commit
2a8d7b8926
@@ -452,8 +452,20 @@ allowRemoteCommand = \case
|
||||
APIStopChat -> False
|
||||
APIActivateChat -> False
|
||||
APISuspendChat _ -> False
|
||||
SetTempFolder _ -> False
|
||||
QuitChat -> False
|
||||
SetTempFolder _ -> False
|
||||
SetFilesFolder _ -> False
|
||||
SetRemoteHostsFolder _ -> False
|
||||
APISetXFTPConfig _ -> False
|
||||
APISetEncryptLocalFiles _ -> False
|
||||
APIExportArchive _ -> False
|
||||
APIImportArchive _ -> False
|
||||
ExportArchive -> False
|
||||
APIDeleteStorage -> False
|
||||
APIStorageEncryption _ -> False
|
||||
APISetNetworkConfig _ -> False
|
||||
APIGetNetworkConfig -> False
|
||||
SetLocalDeviceName _ -> False
|
||||
ListRemoteHosts -> False
|
||||
StartRemoteHost _ -> False
|
||||
SwitchRemoteHost {} -> False
|
||||
@@ -1052,6 +1064,7 @@ data RemoteHostError
|
||||
| RHETimeout
|
||||
| RHEBadState -- ^ Illegal state transition
|
||||
| RHEBadVersion {appVersion :: AppVersion}
|
||||
| RHELocalCommand -- ^ Command not allowed for remote execution
|
||||
| RHEDisconnected {reason :: Text} -- TODO should be sent when disconnected?
|
||||
| RHEProtocolError RemoteProtocolError
|
||||
deriving (Show, Exception)
|
||||
|
||||
Reference in New Issue
Block a user