From a2233298157c218e73fabbccc12beeb78ddbe8f0 Mon Sep 17 00:00:00 2001 From: jfreegman Date: Tue, 27 Feb 2018 18:46:56 -0500 Subject: [PATCH] Fix persistent groupchat loading --- src/toxic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/toxic.c b/src/toxic.c index fed084b..7104502 100644 --- a/src/toxic.c +++ b/src/toxic.c @@ -319,6 +319,10 @@ static void load_groups(ToxWindow *prompt, Tox *m) size_t num_chats = tox_conference_get_chatlist_size(m); uint32_t chatlist[num_chats]; + if (num_chats) { + tox_conference_get_chatlist(m, chatlist); + } + for (i = 0; i < num_chats; ++i) { uint32_t groupnum = chatlist[i];