Skip to content

Commit 172f279

Browse files
committed
Increase max group message length by four bytes
The max message length was reduced by 4 bytes to account for the pseudo message ID, which had unintended effects on clients. It makes more sense to increase the raw packet length by four and keep the max group message length the same as the max message length for friend chats.
1 parent b2ca401 commit 172f279

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment:
1111

1212
install:
1313
- set PATH=C:\Python311-x64\Scripts;%PATH%
14-
- py -3 -m pip install conan
14+
- py -3 -m pip install conan==1.59.0
1515
- git submodule update --init --recursive
1616

1717
for:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b0fafb30bffe21889f06a95edd3867f29a2203d30c2d7e7bf3ef646267f08d64 /usr/local/bin/tox-bootstrapd
1+
62d2c7ab2a14d1f9b00acaf13813b3ea916ccfb2173c9ba95ac82a843a258119 /usr/local/bin/tox-bootstrapd

toxcore/group_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#define MAX_GC_TOPIC_SIZE 512
2222
#define MAX_GC_GROUP_NAME_SIZE 48
2323
#define GC_MESSAGE_PSEUDO_ID_SIZE 4
24-
#define GROUP_MAX_MESSAGE_LENGTH 1368
24+
#define GROUP_MAX_MESSAGE_LENGTH 1372
2525

2626
/* Max size of a packet chunk. Packets larger than this must be split up.
2727
*

toxcore/tox.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3301,7 +3301,7 @@ uint32_t tox_group_max_part_length(void);
33013301
/**
33023302
* Maximum length of a group text message.
33033303
*/
3304-
#define TOX_GROUP_MAX_MESSAGE_LENGTH 1368
3304+
#define TOX_GROUP_MAX_MESSAGE_LENGTH 1372
33053305

33063306
/**
33073307
* Maximum length of a group custom lossy packet.

0 commit comments

Comments
 (0)