summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6f49a76)
Making a call to GetContactAttributes only gets the attributes currently known
to the CM. If a contact is unknown, lookups for the attributes are then queued
and signalled when retrieved. When we receive this signal, we should refilter
the contact list.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=662727
+static void
+contact_capabilities_changed (TpContact *contact,
+ GParamSpec *pspec,
+ EmpathyContactChooser *self)
+{
+ empathy_individual_view_refilter (self->priv->view);
+}
+
static void
get_contacts_cb (TpConnection *connection,
guint n_contacts,
static void
get_contacts_cb (TpConnection *connection,
guint n_contacts,
individual = folks_individual_new (personas);
individual = folks_individual_new (personas);
+ /* listen for updates to the capabilities */
+ tp_g_signal_connect_object (contacts[0], "notify::capabilities",
+ G_CALLBACK (contact_capabilities_changed), self, 0);
+
/* Pass ownership to the list */
ctx->individuals = g_list_prepend (ctx->individuals, individual);
/* Pass ownership to the list */
ctx->individuals = g_list_prepend (ctx->individuals, individual);