Plugins should have async API to create accounts
@xclaesse
Submitted by Xavier Claessens Assigned to Telepathy bugs list
Description
For Ubuntu Online Account plugin (libaccounts) we use the AgAccount's id as storage identifier (mcp_account_storage_get_identifier). However that id is know only hafter the AgAccount has been stored in permanent storage. This means that _create_account() is racy because we cannot tell MC to wait for the commit to be done before getting the account's identifier.