[empathy/gnome-2-28-candidate: 4/6] Only handle manually text channels.



commit c07fe5f696c21445fe1fcf56e841b03549cb8674
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Sep 15 15:49:11 2009 +0200

    Only handle manually text channels.

 libempathy/empathy-dispatcher.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index 0cd490b..26d032f 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -809,6 +809,12 @@ dispatcher_connection_got_all (TpProxy *proxy,
 
           object_path = g_value_get_boxed (g_value_array_get_nth (values, 0));
           properties = g_value_get_boxed (g_value_array_get_nth (values, 1));
+
+          if (tp_strdiff (tp_asv_get_string (properties,
+                      TP_IFACE_CHANNEL ".ChannelType"),
+                  TP_IFACE_CHANNEL_TYPE_TEXT))
+            continue;
+
           dispatcher_connection_new_channel_with_properties (dispatcher,
               TP_CONNECTION (proxy), object_path, properties);
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]