mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Prevent joining groupchat more than once.
This commit is contained in:
parent
8e2b8d468a
commit
a6e1a74779
|
@ -934,6 +934,9 @@ int join_groupchat(Group_Chats *g_c, int32_t friendnumber, uint8_t expected_type
|
|||
if (friendcon_id == -1)
|
||||
return -1;
|
||||
|
||||
if (get_group_num(g_c, data + sizeof(uint16_t)) != -1)
|
||||
return -1;
|
||||
|
||||
int groupnumber = create_group_chat(g_c);
|
||||
|
||||
if (groupnumber == -1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user