[Telepathy-commits] [telepathy-mission-control/master] Channel requests don't have immutable properties

Alberto Mardegan alberto.mardegan at nokia.com
Tue Dec 9 01:23:05 PST 2008


If the channel is not yet bound to a TpChannel, the immutable properties are
not set: the requested properties must be used, instead.
---
 src/mcd-dispatcher.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 795803d..cb955b6 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -1002,11 +1002,15 @@ channel_classes_equals (GHashTable *channel_class1, GHashTable *channel_class2)
 static gboolean
 match_filters (McdChannel *channel, GList *filters)
 {
-    GHashTable *channel_properties =
-        _mcd_channel_get_immutable_properties (channel);
+    GHashTable *channel_properties;
     gboolean matched = FALSE;
     GList *list;
 
+    channel_properties =
+        (mcd_channel_get_status (channel) == MCD_CHANNEL_REQUEST) ?
+        _mcd_channel_get_requested_properties (channel) :
+        _mcd_channel_get_immutable_properties (channel);
+
     for (list = filters; list != NULL; list = list->next)
     {
         GHashTable *filter = list->data;
-- 
1.5.6.5




More information about the Telepathy-commits mailing list