-static void
-tp_contact_list_set_blocked (EmpathyContactList *list,
- EmpathyContact *contact,
- gboolean blocked,
- gboolean abusive)
-{
- EmpathyTpContactListPriv *priv = GET_PRIV (list);
- TpHandle handle = empathy_contact_get_handle (contact);
- GArray handles = { (char *) &handle, 1 };
-
- g_return_if_fail (TP_IS_CHANNEL (priv->deny));
-
- if (blocked && abusive) {
- /* we have to do this via the new interface */
- g_return_if_fail (priv->flags &
- EMPATHY_CONTACT_LIST_CAN_REPORT_ABUSIVE);
-
- tp_cli_connection_interface_contact_blocking_call_block_contacts (
- priv->connection, -1,
- &handles, TRUE, NULL, NULL, NULL, NULL);
- } else if (blocked) {
- tp_cli_channel_interface_group_call_add_members (
- priv->deny, -1,
- &handles, NULL, NULL, NULL, NULL, NULL);
- } else {
- tp_cli_channel_interface_group_call_remove_members (
- priv->deny, -1,
- &handles, NULL, NULL, NULL, NULL, NULL);
- }
-}
-
-static gboolean
-tp_contact_list_get_blocked (EmpathyContactList *list,
- EmpathyContact *contact)
-{
- EmpathyTpContactListPriv *priv = GET_PRIV (list);
-
- g_return_val_if_fail (TP_IS_CHANNEL (priv->deny), FALSE);
-
- return tp_intset_is_member (tp_channel_group_get_members (priv->deny),
- empathy_contact_get_handle (contact));
-}
-