Documentation and symbolic constants for dispatcher actions (#31278)

* Remove unreachable code

`view_last_screen` is never used.

* Remove unused action `user_activity_started`

Nothing listens to this, so it's pointless.

* Symbolic constant for `Action.UserActivity`

* Define symbolic constants for more `Action`s

Constants for some actions that are emitted by `Lifecycle`
This commit is contained in:
Richard van der Hoff
2025-11-20 18:18:04 +00:00
committed by GitHub
parent c203f02731
commit 1285b73be6
16 changed files with 60 additions and 40 deletions

View File

@@ -132,7 +132,7 @@ describe("ElectronPlatform", () => {
new ElectronPlatform();
dispatcher.dispatch(
{
action: "client_started",
action: Action.ClientStarted,
},
true,
);