Import identities from the official clients
Switching to Voelin should not mean starting over on every server: the unique id is the key pair, and a user who cannot bring it along loses every server group they have. So read the forms the official clients keep it in — the TeamSpeak 3 `.ini` export, the `ProtobufItems` items both clients write, and the older `Identities/<n>/…` rows — and store them through voelin-store, skipping unique ids the store already has instead of adding a second copy. Export back to the `.ini` form in the same module: an importer without an exporter traps people here, which is the thing being fixed. The clients' databases hold private keys and may be open in a running client, so they are opened read-only and `immutable`: no lock, no shared-memory file, no write-ahead log replay, nothing of the user's changed to read it. The cost is that an identity written but not yet checkpointed is not seen, which is the right way round. Three field numbers do not earn a protobuf dependency; the wire reader is twenty lines and skips what it does not understand. An item is taken as an identity only when its declared type says so, never because a field number happens to match. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
840d9ce366
commit
90f234cff4
5 files changed
+671
-3
No files matched your search
Generated
+2
@@ -9096,8 +9096,10 @@ version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"base64 0.22.1",
|
||||
"dirs",
|
||||
"futures",
|
||||
"md5",
|
||||
"rusqlite",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"thiserror 2.0.21",
|
||||
|
||||
Reference in new issue
Block a user