The public client repository must not carry third_party/schema-api: TeamSpeak's non-public myTeamSpeak API protocol definitions, which came without a licence. The account sign-in built on them (crates/voelin-myts) goes with it, since nothing else in the client used that snapshot. Removed: third_party/schema-api, crates/voelin-myts, the account module of voelin-ui (sign-in, saved session, profile, avatar, badges, User Tag), the login page at start and the live account test of voelin-core. The workspace members, default-members and exclude lists, both manifests and Cargo.lock no longer name them (tonic, prost-build and their dependencies drop out of the lock file and THIRD_PARTY_NOTICES.md; about.hbs has no schema-api section). Settings -> My Account keeps the identity in use and shows a note that account sign-in is not available in this build. The Slint account screens stay, fed neutral values (Bridge.myts keeps its default: signed out, not available, no prompt), so the account can return without redoing them. The TeamSpeak protocol parts in tsproto/tsclientlib (myTS ID, other users' badges and avatars) are untouched. The account returns later through the gateway library (VoelinGateWay); the research notes in docs/research/myteamspeak.md stay and say so. CHANGELOG, docs/ui.md, docs/identity.md and SECURITY.md no longer describe the account as present. A session an earlier build saved stays in the system keyring (item myts/session) until the user deletes it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
259bdee6e1
commit
1bee9c94e8
24 files changed
+58
-2385
No files matched your search
@@ -84,8 +84,7 @@ use voelin_model::{
|
||||
use voelin_store::{Bookmark, MessageSource};
|
||||
|
||||
use crate::app::{
|
||||
App, Bridge, MainWindow, MobileTab, MytsBadge, Nav, Page, RecordingItem, SettingsSection,
|
||||
with_app,
|
||||
App, Bridge, MainWindow, MobileTab, Nav, Page, RecordingItem, SettingsSection, with_app,
|
||||
};
|
||||
use crate::settings::LastVoice;
|
||||
|
||||
@@ -197,54 +196,6 @@ pub(crate) fn start(ui: &MainWindow, switches: &Switches) -> Running {
|
||||
for open in &switches.open {
|
||||
let (what, arg) = open.split_once(':').unwrap_or((open.as_str(), ""));
|
||||
match what {
|
||||
"login" if switches.demo_ui => {
|
||||
let bridge = ui.global::<Bridge>();
|
||||
let mut account = bridge.get_myts();
|
||||
account.available = true;
|
||||
account.prompt = arg != "account";
|
||||
if arg == "account" {
|
||||
account.signed_in = true;
|
||||
account.username = "Alex Example".into();
|
||||
account.email = "alex@example.test".into();
|
||||
account.uuid = "00000000-0000-0000-0000-000000000001".into();
|
||||
account.myts_id = "AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB".into();
|
||||
account.identity_status = 1;
|
||||
account.initials = "AE".into();
|
||||
account.description = "Usually in the Raid channel after 8.".into();
|
||||
account.member_since = "2019-03-14".into();
|
||||
account.last_login = "2026-10-03".into();
|
||||
let strings = |items: &[&str]| {
|
||||
slint::ModelRc::new(slint::VecModel::from(
|
||||
items.iter().map(|s| slint::SharedString::from(*s)).collect::<Vec<_>>(),
|
||||
))
|
||||
};
|
||||
account.badges = strings(&["TeamSpeak 6 Beta", "Early supporter"]);
|
||||
// Signed for servers: the first shown, the second not.
|
||||
let badge = |name: &str, shown| MytsBadge {
|
||||
name: name.into(),
|
||||
shown,
|
||||
can_change: true,
|
||||
};
|
||||
account.badge_choice = slint::ModelRc::new(slint::VecModel::from(vec![
|
||||
badge("TeamSpeak 6 Beta", 1),
|
||||
badge("Early supporter", 0),
|
||||
]));
|
||||
account.user_tag = "alex@myteamspeak.com".into();
|
||||
account.devices =
|
||||
strings(&["Voelin · EU · 2026-10-03", "TeamSpeak · EU · 2026-09-28"]);
|
||||
nav.invoke_open_settings(SettingsSection::Account);
|
||||
}
|
||||
account.otp_required = arg == "otp";
|
||||
account.can_forget = arg == "saved" || arg == "account";
|
||||
account.status = if arg == "otp" {
|
||||
3
|
||||
} else if arg == "saved" {
|
||||
2
|
||||
} else {
|
||||
0
|
||||
};
|
||||
bridge.set_myts(account);
|
||||
}
|
||||
"home" => nav.invoke_show(Page::Home),
|
||||
"server" => {
|
||||
nav.invoke_show(Page::Server);
|
||||
|
||||
Reference in new issue
Block a user