From 1bca289287498a3b4b091b074e2ad954dec6b9d2 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 20 Aug 2012 13:23:23 +0200 Subject: Telepathy service is "google-talk" not "google" https://bugzilla.gnome.org/show_bug.cgi?id=681444 --- ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3