fix: Context::get_info: Report displayname as "displayname" (w/o underscore)

Otherwise the user thinks that the config key is "display_name" and can't change it using `set
display_name` command.
This commit is contained in:
iequidoo
2024-01-05 06:38:35 -03:00
committed by iequidoo
parent 660cfd4f01
commit 5e3fcafb3a
2 changed files with 2 additions and 2 deletions

View File

@@ -239,7 +239,7 @@ describe('Basic offline Tests', function () {
'delete_device_after', 'delete_device_after',
'delete_server_after', 'delete_server_after',
'deltachat_core_version', 'deltachat_core_version',
'display_name', 'displayname',
'download_limit', 'download_limit',
'e2ee_enabled', 'e2ee_enabled',
'entered_account_settings', 'entered_account_settings',

View File

@@ -715,7 +715,7 @@ impl Context {
); );
res.insert("journal_mode", journal_mode); res.insert("journal_mode", journal_mode);
res.insert("blobdir", self.get_blobdir().display().to_string()); res.insert("blobdir", self.get_blobdir().display().to_string());
res.insert("display_name", displayname.unwrap_or_else(|| unset.into())); res.insert("displayname", displayname.unwrap_or_else(|| unset.into()));
res.insert( res.insert(
"selfavatar", "selfavatar",
self.get_config(Config::Selfavatar) self.get_config(Config::Selfavatar)