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.
#498
There is a new settings called "load_muted_replies", on by default, if turned off, it will hide the button
The only way to mute a note of your own is either to mute your own npub or that specific event id. If a word is muted and your note contain this word, it won't be hidden.
This one is the most challenging. It should be done in the new NoteReducer.
The NoteReducer currently look for a parent at a depth of 2. If it turns out that the parent at the depth 3 is muted, we won't catch it.
The solution is obviously to loop until no parent is found just to check if one event in the chain is being muted, in which case all downstream event should be hidden. It might have a small performance footprint.
Awaiting your feedback on that last point to implement the needed changes