Fixed bug with group chats.

This commit is contained in:
irungentoo 2013-11-24 14:35:47 -05:00
parent 2b94408adc
commit 0a84c61c39

View File

@ -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);
}