Skip to content

Commit

Permalink
fix: change default send crash reports value to true
Browse files Browse the repository at this point in the history
  • Loading branch information
TRtomasz committed Dec 6, 2024
1 parent 1529dfb commit 0304f3f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/runtime/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ fn migrate_storage_schema_to_v16<E: Env>() -> TryEnvFuture<()> {
);
settings.insert(
"sendCrashReports".to_owned(),
serde_json::Value::Bool(false),
serde_json::Value::Bool(true),
);
E::set_storage(PROFILE_STORAGE_KEY, Some(&profile))
}
Expand Down Expand Up @@ -1196,7 +1196,7 @@ mod test {
let migrated_profile = json!({
"settings": {
"serverInForeground": false,
"sendCrashReports": false
"sendCrashReports": true
}
});

Expand Down
2 changes: 1 addition & 1 deletion src/types/profile/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl Default for Settings {
surround_sound: false,
streaming_server_warning_dismissed: None,
server_in_foreground: false,
send_crash_reports: false,
send_crash_reports: true,
}
}
}
2 changes: 1 addition & 1 deletion src/unit_tests/serde/default_tokens_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ impl DefaultTokens for Settings {
Token::Str("serverInForeground"),
Token::Bool(false),
Token::Str("sendCrashReports"),
Token::Bool(false),
Token::Bool(true),
Token::StructEnd,
]
}
Expand Down
6 changes: 3 additions & 3 deletions src/unit_tests/serde/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn settings() {
Utc.with_ymd_and_hms(2021, 1, 1, 0, 0, 0).unwrap(),
),
server_in_foreground: false,
send_crash_reports: false,
send_crash_reports: true,
},
&[
Token::Struct {
Expand Down Expand Up @@ -110,7 +110,7 @@ fn settings() {
Token::Str("serverInForeground"),
Token::Bool(false),
Token::Str("sendCrashReports"),
Token::Bool(false),
Token::Bool(true),
Token::StructEnd,
],
);
Expand Down Expand Up @@ -183,7 +183,7 @@ fn settings_de() {
Token::Str("serverInForeground"),
Token::Bool(false),
Token::Str("sendCrashReports"),
Token::Bool(false),
Token::Bool(true),
Token::StructEnd,
],
);
Expand Down

0 comments on commit 0304f3f

Please sign in to comment.