aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-05-03 17:21:11 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-05-03 17:25:19 +0800
commit12c633ddc23c83b660b33b841c420d410e580a59 (patch)
tree6c50b8c6ee38bf5c947115c6caeb7eda40e70e4d /src
parent6fa54e003930d9c0f3fe64a5e799b2f2c55c0fef (diff)
downloadgsoc2013-empathy-12c633ddc23c83b660b33b841c420d410e580a59.tar
gsoc2013-empathy-12c633ddc23c83b660b33b841c420d410e580a59.tar.gz
gsoc2013-empathy-12c633ddc23c83b660b33b841c420d410e580a59.tar.bz2
gsoc2013-empathy-12c633ddc23c83b660b33b841c420d410e580a59.tar.lz
gsoc2013-empathy-12c633ddc23c83b660b33b841c420d410e580a59.tar.xz
gsoc2013-empathy-12c633ddc23c83b660b33b841c420d410e580a59.tar.zst
gsoc2013-empathy-12c633ddc23c83b660b33b841c420d410e580a59.zip
invite-participant-dialog: compare TpContact objects rather than handles
https://bugzilla.gnome.org/show_bug.cgi?id=675229
Diffstat (limited to 'src')
-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;