]> git.0d.be Git - empathy.git/commitdiff
Add a group channel only if suppress_handler == FALSE
authorXavier Claessens <xclaesse@gmail.com>
Tue, 17 Feb 2009 15:12:12 +0000 (16:12 +0100)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 22 Apr 2009 10:21:11 +0000 (12:21 +0200)
libempathy/empathy-tp-contact-list.c

index 7988a3ea1098b562c28bce3607992916f88bf1dd..051c342c99431f71bbcf1469f85c9afdd4c215a8 100644 (file)
@@ -614,9 +614,11 @@ tp_contact_list_new_channel_cb (TpConnection *proxy,
                                gpointer      user_data,
                                GObject      *list)
 {
                                gpointer      user_data,
                                GObject      *list)
 {
-       tp_contact_list_group_add_channel (EMPATHY_TP_CONTACT_LIST (list),
-                                          object_path, channel_type,
-                                          handle_type, handle);
+       if (!suppress_handler) {
+               tp_contact_list_group_add_channel (EMPATHY_TP_CONTACT_LIST (list),
+                                                  object_path, channel_type,
+                                                  handle_type, handle);
+       }
 }
 
 static void
 }
 
 static void