summaryrefslogtreecommitdiff
path: root/ubuntu-online-accounts
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-20 13:23:23 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-20 13:45:15 +0200
commit1bca289287498a3b4b091b074e2ad954dec6b9d2 (patch)
tree8b3ee49f9633ded4565f685de6af91d78f7ee88d /ubuntu-online-accounts
parentfea5bd16c2ccd4a20ae43afbfa218227c7d0ef51 (diff)
downloadempathy-1bca289287498a3b4b091b074e2ad954dec6b9d2.tar.gz
Telepathy service is "google-talk" not "google"
https://bugzilla.gnome.org/show_bug.cgi?id=681444
Diffstat (limited to 'ubuntu-online-accounts')
-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;
}