feat(models): capture account country and language on login
parse_login_response now reads user.country_code and user.language_code (snake_case wire names, verified against Qobuz's own embedded login fixture) into two new serde-defaulted Option fields on UserSession, so pre-v10 persisted sessions still load with both as None (translation stays Auto-off). qbzd's test construction updated for the new fields. km
This commit is contained in:
3 files changed
+105
No files matched your search
@@ -988,6 +988,8 @@ mod tests {
|
||||
display_name: "Tester".into(),
|
||||
subscription_label: "studio".into(),
|
||||
subscription_valid_until: None,
|
||||
country_code: None,
|
||||
language_code: None,
|
||||
};
|
||||
set_logged_in(&shared, &session);
|
||||
let s = shared.lock().unwrap();
|
||||
|
||||
Reference in new issue
Block a user