mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed a bug or two.
Added breaks on the new packet handlers in doFriends for the switch statement, and added a default.
This commit is contained in:
parent
1cc47101fe
commit
bb0cd7da0c
|
@ -1182,6 +1182,8 @@ void doFriends(Messenger *m)
|
||||||
|
|
||||||
if (m->group_invite)
|
if (m->group_invite)
|
||||||
(*m->group_invite)(m, i, data, m->group_invite_userdata);
|
(*m->group_invite)(m, i, data, m->group_invite_userdata);
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case PACKET_ID_JOIN_GROUPCHAT: {
|
case PACKET_ID_JOIN_GROUPCHAT: {
|
||||||
|
@ -1197,6 +1199,12 @@ void doFriends(Messenger *m)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
group_newpeer(m->chats[groupnum], data + crypto_box_PUBLICKEYBYTES);
|
group_newpeer(m->chats[groupnum], data + crypto_box_PUBLICKEYBYTES);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
default: {
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user