aboutsummaryrefslogtreecommitdiffstats
path: root/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c')
-rw-r--r--ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c b/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
index d30ab133d..20b8f0949 100644
--- a/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
+++ b/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
@@ -430,6 +430,17 @@ account_manager_uoa_list (const McpAccountStorage *storage,
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,
@@ -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",
- ag_account_get_provider_name (account));
+ provider_to_tp_service_name (ag_account_get_provider_name (account)));
handled = TRUE;
}