projects
/
platform
/
upstream
/
folks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8fa98d
)
telepathy: Don’t create PersonaStores for disabled accounts
author
Philip Withnall
<philip@tecnocode.co.uk>
Mon, 18 Jun 2012 10:08:59 +0000
(11:08 +0100)
committer
Philip Withnall
<philip@tecnocode.co.uk>
Mon, 18 Jun 2012 10:08:59 +0000
(11:08 +0100)
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.
backends/telepathy/tp-backend.vala
patch
|
blob
|
history
diff --git
a/backends/telepathy/tp-backend.vala
b/backends/telepathy/tp-backend.vala
index
9df7827
..
5e03949
100644
(file)
--- a/
backends/telepathy/tp-backend.vala
+++ b/
backends/telepathy/tp-backend.vala
@@
-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);