Send 0 as peer number in CHANGE_OCCURRED group event.

This commit is contained in:
iphydf 2018-02-17 17:15:58 +00:00
parent 746c624a09
commit 841b63434f
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -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); add_to_closest(g_c, groupnumber, real_pk, temp_pk);
if (do_gc_callback && g_c->group_namelistchange) { 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) { 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) { 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) { if (g->peer_on_leave) {