[Telepathy-commits] [telepathy-mission-control/master] Use requested properties

Alberto Mardegan alberto.mardegan at nokia.com
Mon Feb 23 00:05:02 PST 2009


When channels are in Requested state, TpChannel's immutable properties could be
empty.
---
 src/mcd-dispatcher.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index ce7eb6b..51fa5a3 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -1036,10 +1036,13 @@ match_filters (McdChannel *channel, GList *filters)
 {
     GHashTable *channel_properties;
     gboolean matched = FALSE;
+    McdChannelStatus status;
     GList *list;
 
+    status = mcd_channel_get_status (channel);
     channel_properties =
-        (mcd_channel_get_status (channel) == MCD_CHANNEL_STATUS_REQUEST) ?
+        (status == MCD_CHANNEL_STATUS_REQUEST ||
+         status == MCD_CHANNEL_STATUS_REQUESTED) ?
         _mcd_channel_get_requested_properties (channel) :
         _mcd_channel_get_immutable_properties (channel);
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list