Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Krzyszkowiak
chatty
Commits
eddcab73
Verified
Commit
eddcab73
authored
Jan 17, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/chatty-folks.c
View file @
eddcab73
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment