feat: Support MSC4406: M_SENDER_IGNORED error code #1308
No reviewers
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1308
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "nex/feat/msc4406-sender-ignored"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request implements MSC4406:
M_SENDER_IGNOREDerror code.Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
Dependency on continuwuation/ruwuma!45
LGTM
feat: Return SENDER_IGNORED error in is_ignored_pduto feat: Support MSC4406:M_SENDER_IGNOREDerror code@ -286,0 +289,4 @@////// The error SenderIgnored is returned if the sender or the sender's server is/// ignored by the relevant user. If the error cannot be returned to the user,/// it should equate to a true value (i.e. ignored).wording clarification suggestion:
alternatively, refactor this to return an enum to make it a bit clearer what's going on
@ -324,1 +334,3 @@return true;return Err(Error::BadRequest(ErrorKind::SenderIgnored { sender: Some(event.sender().to_owned()) },"You have ignored this sender.",replace "sender" with "user" in this message?
e5586510e7a8a931b834a8a931b834253730a4ea253730a4ead15ac1d3c1