[telepathy-mission-control/master] Make it clear that we always dispatch unrequested (incoming) channels, whatever subclasses might have to say about it

Simon McVittie simon.mcvittie at collabora.co.uk
Mon Nov 2 06:56:19 PST 2009


---
 src/mcd-connection.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index f5cb045..72d2bd3 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -1266,6 +1266,12 @@ on_new_channels (TpConnection *proxy, const GPtrArray *channels,
         channel_list = g_list_prepend (channel_list, channel);
     }
 
+    if (!requested)
+    {
+        /* we always dispatch unrequested (incoming) channels */
+        only_observe = FALSE;
+    }
+
     _mcd_dispatcher_take_channels (priv->dispatcher, channel_list, requested,
                                    only_observe);
 }
-- 
1.5.6.5




More information about the telepathy-commits mailing list