Notify Tentacles when pending Remote approval is revoked
This commit is contained in:
1 parent
205cb27483
commit
9bc74dbb13
8 files changed
+61
-12
No files matched your search
@@ -305,7 +305,9 @@ class SessionClient:
|
||||
or role == "controlled" and set(grants) & {"remote-present", "keyboard-capture"}):
|
||||
raise ProtocolError("Invalid action event")
|
||||
elif event["kind"] == "remote.revoked":
|
||||
if ("speech" in event or not _token(event.get("lease")) or event.get("action", "") != "" or event.get("role", "") != ""
|
||||
identity = ((_token(event.get("lease")) and event.get("action", "") == "")
|
||||
or (_token(event.get("action")) and event.get("lease", "") == ""))
|
||||
if ("speech" in event or not identity or event.get("role", "") != ""
|
||||
or event.get("grants", []) != [] or event.get("reason") not in ("closed", "expired", "local", "replaced")):
|
||||
raise ProtocolError("Invalid revoke event")
|
||||
elif event["kind"] == "remote.output":
|
||||
|
||||
Reference in new issue
Block a user