diff options
Diffstat (limited to 'src/empathy-invite-participant-dialog.c')
-rw-r--r-- | src/empathy-invite-participant-dialog.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c index fd5bd8f76..ecbf00be9 100644 --- a/src/empathy-invite-participant-dialog.c +++ b/src/empathy-invite-participant-dialog.c @@ -17,7 +17,6 @@ #include "empathy-invite-participant-dialog.h" #include <libempathy/empathy-utils.h> -#include <libempathy/empathy-contact-list.h> #include <libempathy-gtk/empathy-contact-chooser.h> #include <libempathy-gtk/empathy-individual-view.h> @@ -146,22 +145,22 @@ filter_individual (EmpathyContactChooser *chooser, return FALSE; /* Filter out contacts which are already in the chat */ - members = empathy_contact_list_get_members (EMPATHY_CONTACT_LIST ( - self->priv->tp_chat)); + members = empathy_tp_chat_get_members (self->priv->tp_chat); 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. */ - handle = tp_channel_group_get_handle_owner ( + /* Try to get the non-channel specific contact. */ + owner = tp_channel_group_get_contact_owner ( TP_CHANNEL (self->priv->tp_chat), - empathy_contact_get_handle (member)); - if (handle == 0) - handle = empathy_contact_get_handle (member); + empathy_contact_get_tp_contact (member)); - if (handle == tp_contact_get_handle (contact)) + if (owner == NULL) + owner = empathy_contact_get_tp_contact (member); + + if (owner == contact) { display = FALSE; break; |