[calls/wip/ui-manage-accounts: 23/26] account-manager: Add credentials when we don't have a suitable provider




commit 47bba97636750bfb2e504d3880876c081c775e78
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date:   Wed Jun 30 13:55:20 2021 +0200

    account-manager: Add credentials when we don't have a suitable provider
    
    The provider might show up later and will add suitable credentials.

 src/calls-account-manager.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/calls-account-manager.c b/src/calls-account-manager.c
index 8412d9da..bc9c8b08 100644
--- a/src/calls-account-manager.c
+++ b/src/calls-account-manager.c
@@ -461,9 +461,8 @@ calls_account_manager_add_credentials (CallsAccountManager *self,
   if (!find_provider (self, credentials_type, &index)) {
     g_autofree char *provider_type =
       g_enum_to_string (CALLS_TYPE_CREDENTIALS_TYPE, credentials_type);
-    /* TODO we should be able to queue something up eventually but let's abort for now */
-    g_info ("Cannot find provider of type '%s'. Aborting (for now).", provider_type);
-    return NULL;
+    g_info ("Cannot find provider of type '%s'", provider_type);
+    goto skip_provider;
   }
 
   provider = g_ptr_array_index (self->providers, index);
@@ -475,6 +474,7 @@ calls_account_manager_add_credentials (CallsAccountManager *self,
     return NULL;
   }
 
+ skip_provider:
   g_list_store_append (self->credentials, credentials);
 
   update_state (self);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]