fix loading of friends

This commit is contained in:
Florian Stinglmayr 2019-07-10 19:07:05 +02:00
parent b6cffac1d9
commit 596969bbae

View File

@ -69,7 +69,7 @@ static void dc_session_handle_ready(dc_session_t s, dc_event_t e)
relationships = json_object_get(r, "relationships"); relationships = json_object_get(r, "relationships");
if (relationships != NULL && json_is_array(relationships)) { if (relationships != NULL && json_is_array(relationships)) {
json_array_foreach(relationships, idx, c) { json_array_foreach(relationships, idx, c) {
dc_account_t u = dc_account_from_relationship(user); dc_account_t u = dc_account_from_relationship(c);
if (u == NULL) { if (u == NULL) {
continue; continue;