[folks] telepathy: Keep Tpf.PersonaStore.personas up to date for cached stores
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] telepathy: Keep Tpf.PersonaStore.personas up to date for cached stores
- Date: Mon, 9 Jan 2012 11:27:30 +0000 (UTC)
commit bf8dfa934b1e6fa31818d51a3eba5cbb04a1632b
Author: Philip Withnall <philip tecnocode co uk>
Date: Fri Jan 6 23:08:10 2012 +0000
telepathy: Keep Tpf.PersonaStore.personas up to date for cached stores
When loading a Tpf.PersonaStore from its cache, ensure Personas are inserted
into both the set of personas _and_ the map of IIDs to personas.
This fixes Tpf.PersonaStore.personas being empty for cached stores.
Helps: https://bugzilla.gnome.org/show_bug.cgi?id=667410
backends/telepathy/lib/tpf-persona-store.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index d905da2..f8e1ace 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -1080,6 +1080,7 @@ public class Tpf.PersonaStore : Folks.PersonaStore
{
foreach (var p in cached_personas)
{
+ this._personas.set (p.iid, p);
this._persona_set.add (p);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]