mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 00:23:03 +01:00
Fix persistent groupchat loading
This commit is contained in:
parent
3fec11d5f9
commit
a223329815
@ -319,6 +319,10 @@ static void load_groups(ToxWindow *prompt, Tox *m)
|
|||||||
size_t num_chats = tox_conference_get_chatlist_size(m);
|
size_t num_chats = tox_conference_get_chatlist_size(m);
|
||||||
uint32_t chatlist[num_chats];
|
uint32_t chatlist[num_chats];
|
||||||
|
|
||||||
|
if (num_chats) {
|
||||||
|
tox_conference_get_chatlist(m, chatlist);
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < num_chats; ++i) {
|
for (i = 0; i < num_chats; ++i) {
|
||||||
uint32_t groupnum = chatlist[i];
|
uint32_t groupnum = chatlist[i];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user