Commit 644d4edc authored by Andrea Schaefer's avatar Andrea Schaefer

Fix phonenumber formatting

parent 0e79fd49
Pipeline #53391 passed with stages
in 13 minutes and 1 second
......@@ -69,7 +69,7 @@ chatty_folks_check_phonenumber (const char *phone_number)
if (g_strrstr (phone_number, "+")) {
result = e_phone_number_to_string (number, E_PHONE_NUMBER_FORMAT_E164);
} else {
result = e_phone_number_get_national_number (number);
result = e_phone_number_to_string (number, E_PHONE_NUMBER_FORMAT_NATIONAL);
}
}
......
......@@ -244,7 +244,7 @@ chatty_utils_check_phonenumber (const char *phone_number)
if (g_strrstr (phone_number, "+")) {
result = e_phone_number_to_string (number, E_PHONE_NUMBER_FORMAT_E164);
} else {
result = e_phone_number_get_national_number (number);
result = e_phone_number_to_string (number, E_PHONE_NUMBER_FORMAT_NATIONAL);
}
}
......
......@@ -62,7 +62,7 @@ chatty_contact_check_phonenumber (const char *phone_number)
if (g_strrstr (phone_number, "+")) {
result = e_phone_number_to_string (number, E_PHONE_NUMBER_FORMAT_E164);
} else {
result = e_phone_number_get_national_number (number);
result = e_phone_number_to_string (number, E_PHONE_NUMBER_FORMAT_NATIONAL);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment