Add channel password prompt on mid-session join (fixes #3)

Joining a password-protected channel after connecting silently failed
with only a generic error in the log - there was no way to enter a
password except the initial-connect "default channel" field.

- connector: "switch" now accepts an optional base64-encoded password
  and wires it through tsclientlib's existing set_password() API; a
  ChannelInvalidPassword failure is reported as a distinct
  channelPasswordRequired event instead of a generic error.
- gateway: forwards channelPassword through switchChannel and remaps
  the connector's snake_case event to the frontend's camelCase shape.
- web: new ChannelPasswordDialog prompts for the password (and flags
  a wrong retry); the password is cached in memory for the session so
  re-entering an already-unlocked channel doesn't prompt again, and
  the cache is cleared on disconnect.

Also includes two earlier Pulse-theme CSS fixes (bottom-toolbar
dropdowns opening off-screen; caret button height mismatch) and the
Speaking Now bar / Pulse Phase D wiring from this session.
This commit is contained in:
Moepchi committed 2026-09-05 23:49:43 +02:00
1 parent 804fa44ab6
commit 27ac828641
6 files changed
+728 -22

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ wss.on("connection", (socket: WebSocket) => {
break;
}
case "switchChannel": {
await connection?.switchChannel(msg.channelId);
await connection?.switchChannel(msg.channelId, msg.channelPassword);
break;
}
case "sendChatMessage": {