mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-02 17:32:50 +08:00
Add Whisper Verlauf dialog and complete the Selbst menu
Whisper Verlauf logs outgoing whisper-target changes with timestamps (incoming-whisper detection isn't observable yet, so it's outgoing-only for now). The Selbst menu now wires Abwesend/Mikrofon/Lautsprecher to the existing toolbar actions and adds a real nickname-change flow, backed by a new "nickname" connector command using tsclientlib's existing client_update().set_name().
This commit is contained in:
1 parent
a0ede4a12a
commit
f5cb4dd160
6 files changed
+346
-14
No files matched your search
@@ -587,6 +587,11 @@ async fn run(args: Args) -> Result<()> {
|
||||
if let Err(e) = part.send(&mut con) {
|
||||
emit(&Event::Error { message: e.to_string() });
|
||||
}
|
||||
} else if let Some(rest) = l.strip_prefix("nickname ") {
|
||||
let part = con.get_state()?.client_update().set_name(rest.trim());
|
||||
if let Err(e) = part.send(&mut con) {
|
||||
emit(&Event::Error { message: e.to_string() });
|
||||
}
|
||||
} else if let Some(rest) = l.strip_prefix("whisper ") {
|
||||
// Format: "whisper <channelId,channelId,...>;<clientId,clientId,...>"
|
||||
// (either side may be empty, e.g. "whisper 5;" or "whisper ;12,13").
|
||||
|
||||
Reference in new issue
Block a user