[telepathy-gabble/master] raise NotCapable error when trying to send a file who doesn't advertise the FT capa

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Mar 30 03:13:10 PDT 2009


---
 src/file-transfer-channel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/file-transfer-channel.c b/src/file-transfer-channel.c
index e696c82..479d9d7 100644
--- a/src/file-transfer-channel.c
+++ b/src/file-transfer-channel.c
@@ -1085,7 +1085,7 @@ gabble_file_transfer_channel_offer_file (GabbleFileTransferChannel *self,
         {
           DEBUG ("contact doesn't have file transfer capabilities");
           if (error != NULL)
-            g_set_error (error, TP_ERRORS, TP_ERROR_NOT_AVAILABLE,
+            g_set_error (error, TP_ERRORS, TP_ERROR_NOT_CAPABLE,
                 "contact doesn't have file transfer capabilities");
 
           return FALSE;
-- 
1.5.6.5




More information about the telepathy-commits mailing list