Merge branch 'codex/myteamspeak-account': myTeamSpeak account sign-in
Conflicts with the channel banners on main, both kept: - crates/proto/UPSTREAM.md: myTeamSpeak's local patch is number 14, after the channel banners' 13. - voelin-core/src/voice.rs: both test modules. - ui/app.slint: the mobile shell hides behind the account prompt and keeps the channel chat's banner. - ui/shells/common.slint: the user card counts a signed-in account as named and shows our avatar, the person icon only without one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
This commit is contained in:
commit
9db6937489
38 files changed
+9850
-217
No files matched your search
@@ -168,6 +168,31 @@ 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;
|
||||
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),
|
||||
"settings" => nav.invoke_open_settings(section(arg)),
|
||||
|
||||
Reference in new issue
Block a user