ui: TeamSpeak links open the server dialog, or move you in voice
Links to ts3server://, teamspeak:// and tmspk.gg in chat were only copied. voelin_model::Link reads them, and invite_link now writes through ServerLink::to_url, so a copied invite reads back the same (a '/' in a channel's name stays %2F in the link, \/ in the path). App::open_link (links.rs) finds the saved server with that address (vm::servers::same_address; of several, the one in voice, else the one shown: link_server). In voice on it, it moves into the link's channel (channel_by_path) through join_channel, so a locked channel asks for its password when the link's is missing or wrong. Otherwise the server dialog opens filled in by link_form, over the saved server's form when there is one: its nickname stays. Nothing connects before Connect. Invite codes need a TeamSpeak service; a toast says so. VOELIN_OPEN=link:<url> goes through inbox::Request::OpenLink, where the platform's links will come in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
This commit is contained in:
1 parent
7965187d2c
commit
65ff5f6693
15 files changed
+843
-96
No files matched your search
@@ -62,7 +62,7 @@ pub(super) fn wire(ui: &MainWindow) {
|
||||
with_app(|app| app.create_topic(key, title.to_string()));
|
||||
});
|
||||
bridge.on_open_link(|link, masked| {
|
||||
with_app(|app| app.open_link_text(&link, masked)).unwrap_or_default().into()
|
||||
with_app(|app| app.open_link_text(&link, masked));
|
||||
});
|
||||
bridge.on_quote_text(|author, text| crate::vm::chat::quote(&author, &text).into());
|
||||
bridge.on_open_member(|id| {
|
||||
|
||||
Reference in new issue
Block a user