This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Bridge limitation warnings #4642
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes matrix-org/matrix-appservice-irc#701
Paired with matrix-org/matrix-appservice-irc#1057
Example of the popover:

Example of the new settings page details:
This feature looks at the bridge state event(s) for a room, and then checks limitations described in those events against the message content a user is about to send. The objective is to avoid matrix users sending messages that are incompatible or badly represented in a bridge rather than mangling the format on the bridge and upsetting remote users.
This PR currently fixes one problem: Matrix users send long messages which the IRC bridge is forced to store in a pastebin, rather than sending over the wire as IRC traditionally dislikes long messages.
There will be an extension MSC coming soon to cover the new keys added to MSC2346.
In terms of what's left to do:
Limit users ability to send messages that breach limitations(N/A - I don't think we want this)Allow users to permanently disregard the warning(N/A - we no longer block the user from sending)