From 7b55863418c19a489150d9a8cb8c0264bbea6579 Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Fri, 13 Dec 2019 11:04:39 +0100 Subject: [PATCH] switch priority order --- src/contact.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/contact.rs b/src/contact.rs index 5028f4c0a..1ad46986a 100644 --- a/src/contact.rs +++ b/src/contact.rs @@ -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 }