]> git.0d.be Git - empathy.git/commitdiff
Telepathy service is "google-talk" not "google"
authorXavier Claessens <xavier.claessens@collabora.co.uk>
Mon, 20 Aug 2012 11:23:23 +0000 (13:23 +0200)
committerXavier Claessens <xavier.claessens@collabora.co.uk>
Mon, 20 Aug 2012 11:45:15 +0000 (13:45 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=681444

ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c

index d30ab133d3d41d9f3d85685c5698061890040766..20b8f094985632498f435d6b0c5073fa64a129d5 100644 (file)
@@ -430,6 +430,17 @@ account_manager_uoa_list (const McpAccountStorage *storage,
   return accounts;
 }
 
   return accounts;
 }
 
+static const gchar *
+provider_to_tp_service_name (const gchar *provider_name)
+{
+  /* Well known services are defined in Telepathy spec:
+   * http://telepathy.freedesktop.org/spec/Account.html#Property:Service */
+  if (!tp_strdiff (provider_name, "google"))
+    return "google-talk";
+
+  return provider_name;
+}
+
 static gboolean
 account_manager_uoa_get (const McpAccountStorage *storage,
     const McpAccountManager *am,
 static gboolean
 account_manager_uoa_get (const McpAccountStorage *storage,
     const McpAccountManager *am,
@@ -487,7 +498,7 @@ account_manager_uoa_get (const McpAccountStorage *storage,
   if (key == NULL || !tp_strdiff (key, "Service"))
     {
       mcp_account_manager_set_value (am, account_name, "Service",
   if (key == NULL || !tp_strdiff (key, "Service"))
     {
       mcp_account_manager_set_value (am, account_name, "Service",
-          ag_account_get_provider_name (account));
+          provider_to_tp_service_name (ag_account_get_provider_name (account)));
       handled = TRUE;
     }
 
       handled = TRUE;
     }