]> git.0d.be Git - empathy.git/commitdiff
EmpathyDispatcher: Handle File channels that we didn't request.
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 16 Jan 2009 17:02:35 +0000 (17:02 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 16 Jan 2009 17:02:35 +0000 (17:02 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=2237

libempathy/empathy-dispatcher.c

index b0084ab62e5a232ca9d332fc55364c58eab6bf28..e8f7b8c7e9f1d2fc947e4a72f586aa9d5c3b916a 100644 (file)
@@ -515,10 +515,11 @@ dispatcher_connection_new_channel (EmpathyDispatcher *dispatcher,
   if (g_hash_table_lookup (cd->outstanding_channels, object_path) != NULL)
     return;
 
-  /* Only pick up non-requested text channels. For all other it doesn't make
-   * sense to handle it if we didn't request it. The same goes for channels we
-   * discovered by the Channels property or ListChannels */
-  if (!incoming && tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT))
+  /* Only pick up non-requested text and file channels. For all other it
+   * doesn't make sense to handle it if we didn't request it. The same goes
+   * for channels we discovered by the Channels property or ListChannels */
+  if (!incoming && tp_strdiff (channel_type, TP_IFACE_CHANNEL_TYPE_TEXT)
+        && tp_strdiff (channel_type, EMP_IFACE_CHANNEL_TYPE_FILE_TRANSFER))
     {
       DEBUG ("Ignoring incoming channel of type %s on %s",
         channel_type, object_path);