-
Notifications
You must be signed in to change notification settings - Fork 14
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
Rejected reason is not visible in Element interface when the server is rejecting sent message via spam checker #1508
Comments
|
The {
"errcode":"M_FORBIDDEN",
"error":"Spam is not permitted here"
} And Element can get the error text to show from here. When in Synapse this issue will be fixed, the templated text should be replaced to actual text. |
To correct what's been said and clear out any confusion, this isn't related to a field called |
Okay, but Element can't use |
Related issues for where we do (wrongly) use |
But the error text from custom modules may be very custom, and even contain variables (not as placeholders), so I think it can't be translated in all cases. |
That's not i18n friendly, Element doesn't check against any known The spec really ought to consider a user's language and the server i18n errors, including in the spam checker module. A translated generic |
Description
When the Matrix server use some spam checker modules, they may fill the
event.rejected_reason
value to tell the user what exactly is the cause of rejection.This info must be available in the HTTP response with rejection, but it isn't shown to user in Element user interface, they see only "Some of your messages have not been sent" phrase and that's all!
Steps to reproduce
event.rejected_reason
field.Describe how what happens differs from what you expected.
Element should show the reasons of rejecting sending of messages, something like this:
Version information
Element version: 07cf2f20fb25-react-890ac14090af-js-3a3be36f4c27
olm version: 3.2.3
The text was updated successfully, but these errors were encountered: