]> git.0d.be Git - empathy.git/commitdiff
empathy_dispatcher_find_requestable_channel_classes: allow handle_type being 0
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 26 Mar 2010 11:40:54 +0000 (12:40 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 30 Mar 2010 09:20:59 +0000 (11:20 +0200)
This allows us to check if channel type with HandleType=None are supported
(for example roomlist channels).

libempathy/empathy-dispatcher.c

index 1edefe9bf3338313b5121e9bd85ae1b422f65335..94d97cc755b26cd4f2a09fca63199c723d92409f 100644 (file)
@@ -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);