mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-16 17:46:23 +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:
parent
8da29d1414
commit
69106910f8
1 changed files with 4 additions and 1 deletions
|
@ -1092,7 +1092,10 @@ calls_manager_get_origin_by_id (CallsManager *self,
|
||||||
uint n_origins;
|
uint n_origins;
|
||||||
|
|
||||||
g_return_val_if_fail (CALLS_IS_MANAGER (self), NULL);
|
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));
|
n_origins = g_list_model_get_n_items (G_LIST_MODEL (self->origins));
|
||||||
for (uint i = 0; i < n_origins; i++) {
|
for (uint i = 0; i < n_origins; i++) {
|
||||||
|
|
Loading…
Reference in a new issue