... and a typo spotted while checking it.
display_name, is_contact, error);
}
-/* Returns a ChimeConects which is not necessarily in the contacst list,
+/* Returns a ChimeContact which is not necessarily in the contacts list,
* and caller owns a ref on it. */
ChimeContact *chime_connection_parse_conversation_contact(ChimeConnection *cxn,
JsonNode *node,
return FALSE;
ChimeContact *member = chime_connection_parse_conversation_contact(cxn, member_node, NULL);
- if (member_node) {
+ if (member) {
const gchar *id = chime_contact_get_profile_id(member);
g_hash_table_insert(conv->members, (gpointer)id, member);
return TRUE;
- }
+ }
return FALSE;
}