pmaports/temp/gnome-contacts/0002-Contact-Sheet-use-normalized-phone-number-for-tel-and-sms-.patch

43 lines
1.7 KiB
Diff
Raw Normal View History

From 584b39696178806491a4a6556c8844e1471737c9 Mon Sep 17 00:00:00 2001
From: Julian Sparber <julian@sparber.net>
Date: Mon, 4 Nov 2019 11:34:19 +0100
Subject: [PATCH] Contact-Sheet: use normalized phone number for tel: and sms:
Fixes: https://source.puri.sm/Librem5/gnome-contacts/issues/33
---
src/contacts-contact-sheet.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index b789d5b8..ec8d5a78 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -224,7 +224,7 @@ public class Contacts.ContactSheet : Grid {
if (this.store.caller_account != null) {
var call_button = create_button ("call-start-symbolic");
call_button.clicked.connect (() => {
- Utils.start_call (phone.value, this.store.caller_account);
+ Utils.start_call (phone.get_normalised (), this.store.caller_account);
});
add_row_with_label (TypeSet.phone.format_type (phone), phone.value, call_button);
@@ -238,13 +238,13 @@ public class Contacts.ContactSheet : Grid {
if (AppInfo.get_all_for_type ("x-scheme-handler/tel").length () > 0) {
call_button = create_button ("call-start-symbolic");
call_button.clicked.connect (() => {
- Utils.start_call (phone.value);
+ Utils.start_call (phone.get_normalised ());
});
}
if (AppInfo.get_all_for_type ("x-scheme-handler/sms").length () > 0) {
sms_button = create_button ("mail-unread-symbolic");
sms_button.clicked.connect (() => {
- Utils.send_sms (phone.value);
+ Utils.send_sms (phone.get_normalised ());
});
}
--
2.26.2