Commit 34e0b442 authored by Philip Withnall's avatar Philip Withnall
Browse files

core: Split details table code out of IA.link_personas()

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=629537
parent 787c0769
......@@ -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;
}
/**
......
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