mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #585 from JFreegman/master
numchats needs to be decremented
This commit is contained in:
commit
9ce1828fac
|
@ -773,6 +773,8 @@ int del_groupchat(Messenger *m, int groupnumber)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m->numchats = i;
|
||||||
|
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
free(m->chats);
|
free(m->chats);
|
||||||
m->chats = NULL;
|
m->chats = NULL;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user