From 0c0c427ea240b0615cc08658fc318516d4259d3e Mon Sep 17 00:00:00 2001 From: Davyd Madeley Date: Fri, 24 Apr 2009 14:26:19 +0800 Subject: Remove redundant empathy_tp_contact_list_can_add() --- libempathy/empathy-contact-manager.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libempathy/empathy-contact-manager.c') diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c index 059382b60..49155c8c5 100644 --- a/libempathy/empathy-contact-manager.c +++ b/libempathy/empathy-contact-manager.c @@ -532,15 +532,18 @@ empathy_contact_manager_can_add (EmpathyContactManager *manager, TpConnection *connection) { EmpathyContactManagerPriv *priv = GET_PRIV (manager); - EmpathyTpContactList *list; + EmpathyContactList *list; + EmpathyContactListFlags flags; g_return_val_if_fail (EMPATHY_IS_CONTACT_MANAGER (manager), FALSE); g_return_val_if_fail (connection != NULL, FALSE); list = g_hash_table_lookup (priv->lists, connection); - if (list == NULL) + if (list == NULL) { return FALSE; + } + flags = empathy_contact_list_get_flags (list); - return empathy_tp_contact_list_can_add (list); + return (flags & EMPATHY_CONTACT_LIST_CAN_ADD); } -- cgit v1.2.3