mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 09:56:35 +03:00
fix displayname to use authname when availible
This commit is contained in:
@@ -742,6 +742,9 @@ impl Contact {
|
|||||||
/// This name is typically used in lists.
|
/// This name is typically used in lists.
|
||||||
/// To get the name editable in a formular, use `Contact::get_name`.
|
/// To get the name editable in a formular, use `Contact::get_name`.
|
||||||
pub fn get_display_name(&self) -> &str {
|
pub fn get_display_name(&self) -> &str {
|
||||||
|
if !self.authname.is_empty() {
|
||||||
|
return &self.authname;
|
||||||
|
}
|
||||||
if !self.name.is_empty() {
|
if !self.name.is_empty() {
|
||||||
return &self.name;
|
return &self.name;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user