switch priority order

This commit is contained in:
Simon Laux
2019-12-13 11:04:39 +01:00
parent 38d5fad4e5
commit 7b55863418

View File

@@ -742,12 +742,12 @@ impl Contact {
/// This name is typically used in lists.
/// To get the name editable in a formular, use `Contact::get_name`.
pub fn get_display_name(&self) -> &str {
if !self.authname.is_empty() {
return &self.authname;
}
if !self.name.is_empty() {
return &self.name;
}
if !self.authname.is_empty() {
return &self.authname;
}
&self.addr
}