1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-16 15:16:04 +00:00

manager: Don't raise critical when origin id lookup fails

We don't store origin ids yet
because https://gitlab.gnome.org/GNOME/calls/-/merge_requests/505
is pending on
https://gitlab.gnome.org/GNOME/gom/-/merge_requests/12 and
https://gitlab.gnome.org/GNOME/gom/-/merge_requests/13
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-04-01 11:38:01 +02:00
parent 8da29d1414
commit 69106910f8

View file

@ -1092,7 +1092,10 @@ calls_manager_get_origin_by_id (CallsManager *self,
uint n_origins;
g_return_val_if_fail (CALLS_IS_MANAGER (self), NULL);
g_return_val_if_fail (origin_id && *origin_id, NULL);
/* TODO Turn this into a critical once https://gitlab.gnome.org/GNOME/calls/-/merge_requests/505 is in */
if (origin_id && *origin_id)
return NULL;
n_origins = g_list_model_get_n_items (G_LIST_MODEL (self->origins));
for (uint i = 0; i < n_origins; i++) {