Implement Nachrichten options panel: named away-message presets + disconnect message

Wires up the previously placeholder-only "Nachrichten" options section: users can now save/delete named away-message templates and set a default leave message that's sent to the server (via DisconnectOptions) when disconnecting.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
MoepchiandClaude Sonnet 5 committed 2026-07-30 23:22:08 +02:00
1 parent 234feb4d55
commit 8fb6d72957
5 files changed
+182 -21

No files matched your search

+4
View File
@@ -113,6 +113,10 @@ wss.on("connection", (socket: WebSocket) => {
await connection?.setOutputMuted(msg.muted);
break;
}
case "disconnect": {
await connection?.disconnect(msg.message ?? "");
break;
}
default:
socket.send(
JSON.stringify({ type: "error", message: `Unknown message type: ${msg.type}` })