mirror of
https://github.com/TokTok/c-toxcore
synced 2026-06-05 05:52:35 +00: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:
@@ -1182,6 +1182,8 @@ void doFriends(Messenger *m)
|
||||
|
||||
if (m->group_invite)
|
||||
(*m->group_invite)(m, i, data, m->group_invite_userdata);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case PACKET_ID_JOIN_GROUPCHAT: {
|
||||
@@ -1197,6 +1199,12 @@ void doFriends(Messenger *m)
|
||||
break;
|
||||
|
||||
group_newpeer(m->chats[groupnum], data + crypto_box_PUBLICKEYBYTES);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user