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

Handle Matrix -> Discord messages over 2000 chars #74

Open
nlpn00b opened this issue Mar 24, 2023 · 0 comments
Open

Handle Matrix -> Discord messages over 2000 chars #74

nlpn00b opened this issue Mar 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@nlpn00b
Copy link

nlpn00b commented Mar 24, 2023

Currently when sending a message from Matrix to Discord that exceeds Discord's 2000 character limit, the message gets dropped and an error gets shown. This could either be handled by splitting the message in parts and sending separate messages, similar to https://betterdiscord.app/plugin/SplitLargeMessages, or by sending the message as a txt file, which is currently done in the Discord client.

This does sound quite difficult to implement though if features like editing and deleting messages need to work. Especially if choosing the message splitting option (and what happens in Matrix if someone in Discord reacts to split messages or opens threads?), so it is probably better to go with sending a txt file, but this also has its issues, like what happens when the message is edited to <2000 characters in Matrix, does it remain a txt file or does it get converted to a normal message in Discord? And is it even possible to keep track when the message in Discord is a txt file and the message in Matrix is normal? Also if the logged in Discord user has Nitro the character limit is increased to 4000.

I'll also work on it and see if something is possible.

@nlpn00b nlpn00b added the enhancement New feature or request label Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant