mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'master' of https://github.com/dubslow/toxcore
This commit is contained in:
commit
6687a05650
|
@ -1324,9 +1324,13 @@ static void handle_message_packet_group(Group_Chats *g_c, int groupnumber, const
|
|||
if (msg_data_len == 0)
|
||||
return;
|
||||
|
||||
uint8_t newmsg[msg_data_len + 1];
|
||||
memcpy(newmsg, msg_data, msg_data_len);
|
||||
newmsg[msg_data_len] = 0;
|
||||
|
||||
//TODO
|
||||
if (g_c->message_callback)
|
||||
g_c->message_callback(g_c->m, groupnumber, index, msg_data, msg_data_len, g_c->message_callback_userdata);
|
||||
g_c->message_callback(g_c->m, groupnumber, index, newmsg, msg_data_len, g_c->message_callback_userdata);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -1544,4 +1548,4 @@ uint32_t copy_chatlist(const Messenger *m, int *out_list, uint32_t list_size)
|
|||
|
||||
return ret;
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user