Display second phone number if the first one is not available
[beifahrer] / src / lift-detail-window.vala
index b621417..a61231c 100644 (file)
@@ -190,6 +190,11 @@ public class LiftDetailWindow : StackableWindow {
                        string phone_number = E.normalize_phone_number (lift.phone);
                        button_phone.value = phone_number;
                        button_sms.value = phone_number;
+               } else if (lift.phone2 != null) {
+                       button_phone.title = _("Phone");
+                       string phone_number = E.normalize_phone_number (lift.phone2);
+                       button_phone.value = phone_number;
+                       button_sms.value = phone_number;
                }
 
                if (lift.email_image_uri != null) {