From 12c633ddc23c83b660b33b841c420d410e580a59 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 3 May 2012 11:21:11 +0200 Subject: invite-participant-dialog: compare TpContact objects rather than handles https://bugzilla.gnome.org/show_bug.cgi?id=675229 --- src/empathy-invite-participant-dialog.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c index 3e35e8374..ecbf00be9 100644 --- a/src/empathy-invite-participant-dialog.c +++ b/src/empathy-invite-participant-dialog.c @@ -150,19 +150,17 @@ filter_individual (EmpathyContactChooser *chooser, for (l = members; l != NULL; l = g_list_next (l)) { EmpathyContact *member = l->data; - TpHandle handle; TpContact *owner; - /* Try to get the non-channel specific handle. */ + /* Try to get the non-channel specific contact. */ owner = tp_channel_group_get_contact_owner ( TP_CHANNEL (self->priv->tp_chat), empathy_contact_get_tp_contact (member)); - handle = tp_contact_get_handle (owner); - if (handle == 0) - handle = empathy_contact_get_handle (member); + if (owner == NULL) + owner = empathy_contact_get_tp_contact (member); - if (handle == tp_contact_get_handle (contact)) + if (owner == contact) { display = FALSE; break; -- cgit v1.2.3