summaryrefslogtreecommitdiff
path: root/src/im-channel-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/im-channel-factory.c')
-rw-r--r--src/im-channel-factory.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/im-channel-factory.c b/src/im-channel-factory.c
index 44df761..3fb9824 100644
--- a/src/im-channel-factory.c
+++ b/src/im-channel-factory.c
@@ -457,14 +457,6 @@ haze_create_conversation (PurpleConversation *conv)
static void
haze_destroy_conversation (PurpleConversation *conv)
{
- PurpleAccount *account = purple_conversation_get_account (conv);
-
- HazeImChannelFactory *im_factory =
- ACCOUNT_GET_HAZE_CONNECTION (account)->im_factory;
- TpBaseConnection *base_conn = TP_BASE_CONNECTION (im_factory->priv->conn);
- TpHandleRepoIface *contact_repo =
- tp_base_connection_get_handles (base_conn, TP_HANDLE_TYPE_CONTACT);
-
HazeConversationUiData *ui_data;
DEBUG ("(PurpleConversation *)%p destroyed", conv);
@@ -476,7 +468,6 @@ haze_destroy_conversation (PurpleConversation *conv)
ui_data = PURPLE_CONV_GET_HAZE_UI_DATA (conv);
- tp_handle_unref (contact_repo, ui_data->contact_handle);
if (ui_data->resend_typing_timeout_id)
g_source_remove (ui_data->resend_typing_timeout_id);
@@ -596,7 +587,7 @@ haze_im_channel_factory_request (HazeImChannelFactory *self,
if (require_new)
{
tp_channel_manager_emit_request_failed (self, request_token,
- TP_ERRORS, TP_ERROR_NOT_AVAILABLE, "Channel already exists");
+ TP_ERROR, TP_ERROR_NOT_AVAILABLE, "Channel already exists");
}
else
{