Verified Commit eddcab73 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak
Browse files

chatty_folks_individual_has_phonenumber: Don't g_error on invalid phone number

parent 8ce5b21b
Pipeline #51050 passed with stages
in 11 minutes and 16 seconds
......@@ -442,10 +442,9 @@ chatty_folks_individual_has_phonenumber (FolksIndividual *individual,
number_match = e_phone_number_compare_strings (phone_number, number, &error);
if (error != NULL) {
g_error ("Could not compare numbers: %s", error->message);
}
if (number_match == E_PHONE_NUMBER_MATCH_EXACT ||
g_debug ("Could not compare numbers: %s", error->message);
result = strcmp (phone_number, number) == 0;
} else if (number_match == E_PHONE_NUMBER_MATCH_EXACT ||
number_match == E_PHONE_NUMBER_MATCH_NATIONAL) {
result = TRUE;
......
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