[empathy] empathy_dispatcher_find_requestable_channel_classes: allow handle_type being 0



commit 57cbda8c31761ad2cc577c6139199ef57a9e2976
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Mar 26 12:40:54 2010 +0100

    empathy_dispatcher_find_requestable_channel_classes: allow handle_type being 0
    
    This allows us to check if channel type with HandleType=None are supported
    (for example roomlist channels).

 libempathy/empathy-dispatcher.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c
index 1edefe9..94d97cc 100644
--- a/libempathy/empathy-dispatcher.c
+++ b/libempathy/empathy-dispatcher.c
@@ -1879,7 +1879,6 @@ empathy_dispatcher_find_channel_classes (EmpathyDispatcher *self,
   ConnectionData *cd;
 
   g_return_val_if_fail (channel_type != NULL, NULL);
-  g_return_val_if_fail (handle_type != 0, NULL);
 
   cd = g_hash_table_lookup (priv->connections, connection);
 
@@ -2023,7 +2022,6 @@ empathy_dispatcher_find_requestable_channel_classes
   g_return_val_if_fail (EMPATHY_IS_DISPATCHER (self), NULL);
   g_return_val_if_fail (TP_IS_CONNECTION (connection), NULL);
   g_return_val_if_fail (channel_type != NULL, NULL);
-  g_return_val_if_fail (handle_type != 0, NULL);
 
   priv = GET_PRIV (self);
 



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