mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-06 11:35:32 +00:00
call: g_return_if_fail: type check calls_call_get_contact ()
This commit is contained in:
parent
26c8bad9cc
commit
f84d3c0adf
1 changed files with 6 additions and 2 deletions
|
@ -396,8 +396,12 @@ calls_call_tone_stop (CallsCall *self,
|
||||||
CallsBestMatch *
|
CallsBestMatch *
|
||||||
calls_call_get_contact (CallsCall *self)
|
calls_call_get_contact (CallsCall *self)
|
||||||
{
|
{
|
||||||
CallsContactsProvider *contacts_provider =
|
CallsContactsProvider *contacts_provider;
|
||||||
calls_manager_get_contacts_provider (calls_manager_get_default ());
|
|
||||||
|
g_return_val_if_fail (CALLS_IS_CALL (self), NULL);
|
||||||
|
|
||||||
|
contacts_provider =
|
||||||
|
calls_manager_get_contacts_provider (calls_manager_get_default ());
|
||||||
|
|
||||||
return calls_contacts_provider_lookup_phone_number (contacts_provider,
|
return calls_contacts_provider_lookup_phone_number (contacts_provider,
|
||||||
calls_call_get_number (self));
|
calls_call_get_number (self));
|
||||||
|
|
Loading…
Reference in a new issue