return TRUE;
}
+static gboolean
+account_is_in_goa (const McpAccountStorage *self,
+ const gchar *account)
+{
+ McpAccountManagerGoaPrivate *priv = GET_PRIVATE (self);
+
+ return (g_hash_table_lookup (priv->accounts, acct) != NULL);
+}
static gboolean
mcp_account_manager_goa_set (const McpAccountStorage *self,
McpAccountManagerGoaPrivate *priv = GET_PRIVATE (self);
GError *error = NULL;
+ if (!account_is_in_goa (self, account))
+ return FALSE;
+
/* No need to save Enabled, it's up to the GOA configuration if the account
* is configured or not. */
if (!tp_strdiff (key, "Enabled"))
{
McpAccountManagerGoaPrivate *priv = GET_PRIVATE (self);
+ if (!account_is_in_goa (self, account))
+ return FALSE;
+
DEBUG ("%s: (%s, %s)", G_STRFUNC, account, key);
if (key == NULL)