Skip to content

Commit 60280a4

Browse files
committed
fix: Update toxic to the new signature of tox_group_send_message.
1 parent d5e6cef commit 60280a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: script/build-minimal-static-toxic.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ mkdir -p "$BUILD_DIR"
136136
cd "$BUILD_DIR"
137137

138138
# The git hash of the c-toxcore version we're using
139-
TOXCORE_VERSION="ebafd51be77821e062f145506b9c9ab9114591b3"
139+
TOXCORE_VERSION="b148a2afff82e6b6d634f524e8f10d9e5b78aa92"
140140

141141
# The sha256sum of the c-toxcore tarball for TOXCORE_VERSION
142-
TOXCORE_HASH="5187c2ecc833bc7a4b056e7b4c0b07504a4dedbb35d644a049c7cf3292d9ae8f"
142+
TOXCORE_HASH="79913e0d95f7039eeaf40e14792c3f881290166132ab2f154c5d1ee87c84e882"
143143

144144
TOXCORE_FILENAME="c-toxcore-$TOXCORE_VERSION.tar.gz"
145145

Diff for: src/groupchats.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1556,8 +1556,9 @@ static void send_group_message(ToxWindow *self, Tox *m, uint32_t groupnumber, co
15561556
}
15571557

15581558
Tox_Err_Group_Send_Message err;
1559+
tox_group_send_message(m, groupnumber, type, (uint8_t *) msg, strlen(msg), &err);
15591560

1560-
if (!tox_group_send_message(m, groupnumber, type, (uint8_t *) msg, strlen(msg), NULL, &err)) {
1561+
if (err != TOX_ERR_GROUP_SEND_MESSAGE_OK) {
15611562
if (err == TOX_ERR_GROUP_SEND_MESSAGE_PERMISSIONS) {
15621563
const Tox_Group_Role role = tox_group_self_get_role(m, groupnumber, NULL);
15631564

0 commit comments

Comments
 (0)