Import the official client's identities on every start
Switching clients should not mean a new unique id. On every start the app now does what `voelinctl identity import --auto` does: identities in the official TeamSpeak 3/6 clients' databases that Voelin does not have yet are added, the files opened read-only and immutable as before. The identity the official client uses by default (field 5 of its payload, now read into `Found::selected`) goes in first, so when Voelin has no identity of its own yet, that one becomes Voelin's default and servers see the same unique id; an existing default stays. What was imported is shown once in the status line (the toast on desktop), by nickname. The runtime setting identity.import_from_teamspeak (default on) turns it off; the sample data of VOELIN_DEMO_UI never imports. The settings are now opened before the identity is chosen. Tested with synthetic databases only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3242e9bb51
commit
5ad3d44090
5 files changed
+147
-15
No files matched your search
@@ -1115,6 +1115,15 @@ pub static CACHE_FETCH_IMAGES: Key<bool> = Key::new(
|
||||
|| true,
|
||||
);
|
||||
|
||||
/// Import identities from the official TeamSpeak clients when the app
|
||||
/// starts ([`crate::identity::import_new`]; their files are only read).
|
||||
pub static IDENTITY_IMPORT: Key<bool> = Key::new(
|
||||
"identity.import_from_teamspeak",
|
||||
Kind::Bool,
|
||||
"Import new identities from the official TeamSpeak clients on start (read only).",
|
||||
|| true,
|
||||
);
|
||||
|
||||
/// How often a file transfer reports its progress (ms); 0: after every
|
||||
/// piece received or sent.
|
||||
pub static FILES_PROGRESS_MS: Key<u32> = Key::new(
|
||||
@@ -1290,6 +1299,7 @@ pub fn builtin_keys() -> Vec<&'static dyn Setting> {
|
||||
&STREAM_AUDIO_SOURCES,
|
||||
&CACHE_MAX_MB,
|
||||
&CACHE_FETCH_IMAGES,
|
||||
&IDENTITY_IMPORT,
|
||||
&FILES_PROGRESS_MS,
|
||||
&PRIVACY_BLOCK_MODE,
|
||||
#[cfg(feature = "media")]
|
||||
|
||||
Reference in new issue
Block a user