#include <glib/gi18n.h>
#include <libnotify/notification.h>
-#include <telepathy-glib/telepathy-glib.h>
-
#include <libempathy/empathy-client-factory.h>
#include <libempathy/empathy-contact.h>
#include <libempathy/empathy-message.h>
if (tp_chat != NULL)
{
- connection = tp_channel_borrow_connection (TP_CHANNEL (tp_chat));
+ connection = tp_channel_get_connection (TP_CHANNEL (tp_chat));
sensitive = empathy_tp_chat_can_add_contact (tp_chat) &&
(tp_connection_get_status (connection, NULL) ==
goto out;
}
- conn = tp_channel_borrow_connection ((TpChannel *) chat);
+ conn = tp_channel_get_connection ((TpChannel *) chat);
tp_contact = empathy_get_tp_contact_for_individual (individual, conn);
if (tp_contact == NULL)
{