]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact-manager.c
Remove redundant empathy_tp_contact_list_can_add()
[empathy.git] / libempathy / empathy-contact-manager.c
index 059382b600b0ee9c3c7310b937d3732a6d3a3e16..49155c8c53ec16d2fc6815d4a67f35bae43283b4 100644 (file)
@@ -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);
 }