Commit 1446c3ed authored by Philip Withnall's avatar Philip Withnall
Browse files

telepathy: Don’t create PersonaStores for disabled accounts

We shouldn’t create persona stores for disabled accounts, as they just sit
there looking lonely and empty. Persona stores should be created for enabled
and valid accounts, and should be removed when those accounts are disabled
or become invalid.
parent c8fa98d3
......@@ -164,6 +164,11 @@ public class Folks.Backends.Tp.Backend : Folks.Backend
private void _account_enabled_cb (Account account)
{
if (!account.enabled)
{
return;
}
var store = Tpf.PersonaStore.dup_for_account (account);
store.removed.connect (this._store_removed_cb);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment