aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-invite-participant-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-invite-participant-dialog.c')
-rw-r--r--src/empathy-invite-participant-dialog.c10
1 files 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;