From 596969bbae2c086f0264f4f40f9ec183fbbd69e9 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 10 Jul 2019 19:07:05 +0200 Subject: [PATCH] fix loading of friends --- libdc/src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdc/src/session.c b/libdc/src/session.c index 8373d8e..1d779ad 100644 --- a/libdc/src/session.c +++ b/libdc/src/session.c @@ -69,7 +69,7 @@ static void dc_session_handle_ready(dc_session_t s, dc_event_t e) relationships = json_object_get(r, "relationships"); if (relationships != NULL && json_is_array(relationships)) { 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) { continue;