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

@@ -715,7 +715,7 @@ impl Context {
);
res.insert("journal_mode", journal_mode);
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(
"selfavatar",
self.get_config(Config::Selfavatar)