You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enter a word to mute, such as “test”, and “Add +” it.
Repeat step 3, entering the same word multiple times.
You will see the word listed multiple times in “Your muted words” list. See the attached screenshot.
This issue is more of a problem when muting a word that you forgot you already muted earlier because the two muted words won’t appear next to each other in the list. If you later remove one of those entries, you won’t know to remove the other entry. Then you will be confused why the word is still muted even though you removed it from the list.
Instead of showing an error message to prevent muting of an already-muted word, I recommend silently moving the old muted word to the top of the list, pretending the word was entered successfully. The user didn’t need to know the truth because they got the result they wanted: their word was added to the top of the muted word list. 👍
- Added a check to find duplicated muted words before adding them
- If muted word is found in `moderationPrefs`. It will show an error
- Added a new string for translating
Hey @cpeterso , thanks for the issue! I had a look at it and proposed a PR to the maintainers.
In short, I have added a check that should stop a duplicated muted word from being added.
I had some issues implementing your recommended solution though
The way this component is currently implemented doesn't allow modification of the data being rendered, as it's closely coupled with the content we get from the API, and shown at the same order we get from there.
If I were to decouple the data in order to render it, such an approach would also add an UX inconsistency in case the user decides for instance to add a duplicated word, navigate out of the screen and then back, the word would be pushed to the its' previous position again.
Instead, I went with an error message. It's a simpler and yet more transparent approach. I hope that would be ok for you 😄
Steps to Reproduce
This issue is more of a problem when muting a word that you forgot you already muted earlier because the two muted words won’t appear next to each other in the list. If you later remove one of those entries, you won’t know to remove the other entry. Then you will be confused why the word is still muted even though you removed it from the list.
Instead of showing an error message to prevent muting of an already-muted word, I recommend silently moving the old muted word to the top of the list, pretending the word was entered successfully. The user didn’t need to know the truth because they got the result they wanted: their word was added to the top of the muted word list. 👍
Attachments
What platform(s) does this occur on?
iOS
Device Info
iPhone 15 Plus running iOS 18.2.1
What version of the app are you using?
Build version: 1.96.4.818; Bundle info: 615bbc3 (prod); Bundle date: 25010300; Platform: ios; Platform version: 18.2.1
Additional Information
No response
The text was updated successfully, but these errors were encountered: