return g_object_ref (priv->user);
}
+static void
+contact_created (EmpathyTpContactFactory *self,
+ EmpathyContact *contact)
+{
+ tp_contact_factory_add_contact (self, contact);
+}
+
EmpathyContact *
empathy_tp_contact_factory_get_from_id (EmpathyTpContactFactory *tp_factory,
const gchar *id)
"account", priv->account,
"id", id,
NULL);
- tp_contact_factory_add_contact (tp_factory, contact);
+ contact_created (tp_factory, contact);
if (priv->ready) {
const gchar *contact_ids[] = {id, NULL};
"account", priv->account,
"handle", handle,
NULL);
- tp_contact_factory_add_contact (tp_factory, contact);
+ contact_created (tp_factory, contact);
contacts = g_list_prepend (contacts, contact);
new_contacts = g_list_prepend (new_contacts, g_object_ref (contact));
}