mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
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:
1 parent
804fa44ab6
commit
27ac828641
6 files changed
+728
-22
No files matched your search
@@ -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": {
|
||||
|
||||
Reference in new issue
Block a user