mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed bug with group chats.
This commit is contained in:
parent
2b94408adc
commit
0a84c61c39
|
@ -437,6 +437,7 @@ static int handle_data(Group_Chat *chat, uint8_t *data, uint32_t len)
|
|||
int peernum = peer_in_chat(chat, data);
|
||||
|
||||
if (peernum == -1) { /*NOTE: This is just for testing and will be removed later.*/
|
||||
if (data[crypto_box_PUBLICKEYBYTES + sizeof(uint32_t)] != GROUP_CHAT_QUIT)
|
||||
peernum = addpeer(chat, data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user