1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 02:46:36 +01:00

Update group API

This commit is contained in:
jfreegman
2022-06-02 10:20:38 -04:00
parent 46eb69412e
commit 68b4713ef7
3 changed files with 5 additions and 3 deletions

View File

@@ -1372,7 +1372,7 @@ static void send_group_message(ToxWindow *self, Tox *m, uint32_t groupnumber, co
Tox_Err_Group_Send_Message err;
if (!tox_group_send_message(m, groupnumber, type, (uint8_t *) msg, strlen(msg), &err)) {
if (!tox_group_send_message(m, groupnumber, type, (uint8_t *) msg, strlen(msg), NULL, &err)) {
if (err == TOX_ERR_GROUP_SEND_MESSAGE_PERMISSIONS) {
const Tox_Group_Role role = tox_group_self_get_role(m, groupnumber, NULL);