]> git.0d.be Git - empathy.git/commitdiff
invite-participant-dialog: compare TpContact objects rather than handles
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 3 May 2012 09:21:11 +0000 (11:21 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 3 May 2012 09:25:19 +0000 (11:25 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=675229

src/empathy-invite-participant-dialog.c

index 3e35e83742e4338ec7a2630c750605ad8e0c5738..ecbf00be93d313fce53fe58f181fc130ccf8358f 100644 (file)
@@ -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;