diff options
Diffstat (limited to 'facebook/facebook-api.c')
-rw-r--r-- | facebook/facebook-api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/facebook/facebook-api.c b/facebook/facebook-api.c index 4a54e41..0ec8e07 100644 --- a/facebook/facebook-api.c +++ b/facebook/facebook-api.c @@ -2535,6 +2535,7 @@ fb_api_thread_parse(FbApi *api, FbApiThread *thrd, JsonNode *root, FbId uid; FbJsonValues *values; gboolean haself = FALSE; + guint num_users = 0; GError *err = NULL; values = fb_json_values_new(root); @@ -2570,6 +2571,7 @@ fb_api_thread_parse(FbApi *api, FbApiThread *thrd, JsonNode *root, while (fb_json_values_update(values, &err)) { str = fb_json_values_next_str(values, "0"); uid = FB_ID_FROM_STR(str); + num_users++; if (uid != priv->uid) { user = fb_api_user_dup(NULL, FALSE); @@ -2588,7 +2590,7 @@ fb_api_thread_parse(FbApi *api, FbApiThread *thrd, JsonNode *root, return FALSE; } - if ((g_slist_length(thrd->users) < 2) || !haself) { + if (num_users < 2 || !haself) { fb_api_thread_reset(thrd, TRUE); g_object_unref(values); return FALSE; |