]> git.0d.be Git - empathy.git/commitdiff
iterate_on_channels: continue instead of returning if a channel doesn't match
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 20 Apr 2010 12:27:52 +0000 (14:27 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 20 Apr 2010 12:33:47 +0000 (14:33 +0200)
We are iterating on channels so we should check the remaining channels...

libempathy/empathy-tp-contact-list.c

index 93742681a124a9582b9113adcdddc81b7556850f..f2197949570831f2d43c6207256bd51946f8cb50 100644 (file)
@@ -817,16 +817,16 @@ iterate_on_channels (EmpathyTpContactList *list,
                if (tp_strdiff (tp_asv_get_string (properties,
                                TP_IFACE_CHANNEL ".ChannelType"),
                    TP_IFACE_CHANNEL_TYPE_CONTACT_LIST))
-                       return;
+                       continue;
 
                if (tp_asv_get_string (properties, TP_IFACE_CHANNEL ".TargetID") == NULL)
-                       return;
+                       continue;
 
                handle_type = tp_asv_get_uint32 (properties,
                        TP_IFACE_CHANNEL ".TargetHandleType", NULL);
 
                if (handle_type != TP_HANDLE_TYPE_GROUP)
-                       return;
+                       continue;
 
                tp_contact_list_group_add_channel (list, path, properties);
        }