[folks] core: Split details table code out of IA.link_personas()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] core: Split details table code out of IA.link_personas()
- Date: Sat, 7 Jul 2012 16:28:39 +0000 (UTC)
commit 34e0b4428332291896d10285aa3f610537a8cf1b
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon May 7 23:59:56 2012 +0100
core: Split details table code out of IA.link_personas()
Helps: https://bugzilla.gnome.org/show_bug.cgi?id=629537
folks/individual-aggregator.vala | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/folks/individual-aggregator.vala b/folks/individual-aggregator.vala
index 2c86ba8..f38dead 100644
--- a/folks/individual-aggregator.vala
+++ b/folks/individual-aggregator.vala
@@ -1792,6 +1792,15 @@ public class Folks.IndividualAggregator : Object
assert (((!) this._primary_store).type_id ==
this._configured_primary_store_type_id);
+ var details = this._build_linking_details (personas);
+
+ yield this.add_persona_from_details (null,
+ (!) this._primary_store, details);
+ }
+
+ private HashTable<string, Value?> _build_linking_details (
+ Set<Persona> personas)
+ {
/* `protocols_addrs_set` will be passed to the new Kf.Persona */
var protocols_addrs_set = new HashMultiMap<string, ImFieldDetails> (
null, null,
@@ -1878,8 +1887,7 @@ public class Folks.IndividualAggregator : Object
local_ids_value);
}
- yield this.add_persona_from_details (null,
- (!) this._primary_store, details);
+ return details;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]