Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attachment-free message body clipped at 2000 bytes #6

Closed
mmhere opened this issue Dec 11, 2015 · 2 comments
Closed

attachment-free message body clipped at 2000 bytes #6

mmhere opened this issue Dec 11, 2015 · 2 comments

Comments

@mmhere
Copy link

mmhere commented Dec 11, 2015

perhaps this is not a limitation in textsecure-cli, but one in the underlying libtextsecure-java ?

i tried sending a message in varying sizes up to 2048 bytes by piping to textsecure-cli. the result is clipped after the 2000th byte.

since things like pictures and videos can be sent, clearly the underlying architecture supports larger messages. just wonder if textsecure-cli is being conservative?

also, it is useful to know this limit (2000 bytes) which does not seem to be declared in the sources. i also search in the sources available on github for libtextsecure-java and do not seem to find any clearly defined limits.

perhaps this is just a documentation issue.

@AsamK
Copy link
Owner

AsamK commented Dec 11, 2015

textsecure-cli has no limit on the message size. The clipping is done by the Android client when receiving the message. You can test this by sending a longer message to another textsecure-cli instance. However I wouldn't send too large text in the body that's not what it's made for.
For large data you can use attachments, they're not included in the message, but downloaded separately. The message contains only a link to the data.

@AsamK
Copy link
Owner

AsamK commented Jan 3, 2016

Closing, as it's not an issue with textsecure-cli, but with the Android client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants