]> git.0d.be Git - empathy.git/commitdiff
Don't ever drop requested channels
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Tue, 1 Sep 2009 13:18:42 +0000 (14:18 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 24 Feb 2010 15:55:53 +0000 (15:55 +0000)
Before moving to the ChannelDispatcher we got channels either through the
NewChannel(s) signal or as a result of requesting a channel from the CM. Now
that we've moved to the ChannelDispatcher, we only get channels that we should
handle through HandleChannels. So we shouldn't filter any of them.

libempathy/empathy-dispatcher.c

index 937a16521a82d30beeba03fe437dd050ea8fcb65..b199f0de597b8b592657a59d1097cac48d28d5fa 100644 (file)
@@ -650,17 +650,6 @@ dispatcher_connection_new_channel (EmpathyDispatcher *self,
   if (g_hash_table_lookup (cd->outstanding_channels, object_path) != NULL)
     return;
 
   if (g_hash_table_lookup (cd->outstanding_channels, object_path) != NULL)
     return;
 
-  /* 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, TP_IFACE_CHANNEL_TYPE_FILE_TRANSFER))
-    {
-      DEBUG ("Ignoring incoming channel of type %s on %s",
-        channel_type, object_path);
-      return;
-    }
-
   for (i = 0 ; blacklist[i] != NULL; i++)
     {
       if (!tp_strdiff (channel_type, blacklist[i]))
   for (i = 0 ; blacklist[i] != NULL; i++)
     {
       if (!tp_strdiff (channel_type, blacklist[i]))