[stable25] Fix missing files:navigation:changed when clicking on a dir in the favorites view #36683
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.
While being in the favorites view, if one clicks a directory, the
files:navigation:changed
event is not emitted so Text can't update the rich workspace visibility.This fixes nextcloud/text#3697 but has the side effect to emit the event twice when clicking on the "Favorites" nav item while being in the "All files" view.
As
files:navigation:changed
is only listened by Text, it does not seems too bad.An alternative fix would be to remove the silent option from
server/apps/files/js/favoritesplugin.js
Line 98 in 6bb0985
but we don't know exactly what side effect it could have.