mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Send 0 as peer number in CHANGE_OCCURRED group event.
This commit is contained in:
parent
746c624a09
commit
841b63434f
|
@ -455,7 +455,7 @@ static int addpeer(Group_Chats *g_c, int groupnumber, const uint8_t *real_pk, co
|
|||
add_to_closest(g_c, groupnumber, real_pk, temp_pk);
|
||||
|
||||
if (do_gc_callback && g_c->group_namelistchange) {
|
||||
g_c->group_namelistchange(g_c->m, groupnumber, g->numpeers - 1, CHAT_CHANGE_OCCURRED, userdata);
|
||||
g_c->group_namelistchange(g_c->m, groupnumber, 0, CHAT_CHANGE_OCCURRED, userdata);
|
||||
}
|
||||
|
||||
if (g->peer_on_join) {
|
||||
|
@ -543,7 +543,7 @@ static int delpeer(Group_Chats *g_c, int groupnumber, int peer_index, void *user
|
|||
}
|
||||
|
||||
if (g_c->group_namelistchange) {
|
||||
g_c->group_namelistchange(g_c->m, groupnumber, peer_index, CHAT_CHANGE_OCCURRED, userdata);
|
||||
g_c->group_namelistchange(g_c->m, groupnumber, 0, CHAT_CHANGE_OCCURRED, userdata);
|
||||
}
|
||||
|
||||
if (g->peer_on_leave) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user