diff options
Diffstat (limited to 'libempathy/empathy-ft-handler.c')
-rw-r--r-- | libempathy/empathy-ft-handler.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c index 708f3b43..367e9460 100644 --- a/libempathy/empathy-ft-handler.c +++ b/libempathy/empathy-ft-handler.c @@ -907,9 +907,8 @@ hash_job_done (gpointer user_data) /* set the checksum in the request... * org.freedesktop.Telepathy.Channel.Type.FileTransfer.ContentHash */ - tp_account_channel_request_set_request_property (priv->request, - TP_PROP_CHANNEL_TYPE_FILE_TRANSFER_CONTENT_HASH, - g_variant_new_string (g_checksum_get_string (hash_data->checksum))); + tp_account_channel_request_set_file_transfer_hash (priv->request, + TP_FILE_HASH_TYPE_MD5, g_checksum_get_string (hash_data->checksum)); } cleanup: @@ -1047,10 +1046,6 @@ ft_handler_read_async_cb (GObject *source, /* FIXME: MD5 is the only ContentHashType supported right now */ hash_data->checksum = g_checksum_new (G_CHECKSUM_MD5); - tp_account_channel_request_set_request_property (priv->request, - TP_PROP_CHANNEL_TYPE_FILE_TRANSFER_CONTENT_HASH_TYPE, - g_variant_new_uint32 (TP_FILE_HASH_TYPE_MD5)); - g_signal_emit (handler, signals[HASHING_STARTED], 0); g_io_scheduler_push_job (do_hash_job, hash_data, NULL, |