fix: correct favorite/unfavorite bulk action logic#12899
Merged
ChristophWurst merged 1 commit intonextcloud:mainfrom May 8, 2026
Merged
fix: correct favorite/unfavorite bulk action logic#12899ChristophWurst merged 1 commit intonextcloud:mainfrom
ChristophWurst merged 1 commit intonextcloud:mainfrom
Conversation
|
Thanks for opening your first pull request in this repository! ✌️ |
Member
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
ChristophWurst
approved these changes
May 8, 2026
Member
ChristophWurst
left a comment
There was a problem hiding this comment.
Makes sense. Thank you!
2980282 to
4c789a8
Compare
The unfavorite button called favoriteAll() and vice versa, with favFlags computed via negated 'isAtLeastOneSelected*' checks. When all selected messages shared the same state, the flag was inverted, causing a no-op or the wrong action. Replace with explicit favFlag: true/false and correctly named methods. Fixes nextcloud#12149 Signed-off-by: RobinAngele <robin@robin4consulting.com>
4c789a8 to
fcb160a
Compare
Member
|
/backport to stable5.8 |
Member
|
/backport to stable5.7 |
This was referenced May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Refs #12149
Changes
Favorite/unfavorite logic
favoriteAll()→unfavoriteAll(),unFavoriteAll()→favoriteAll()favFlag: true/favFlag: falseinstead of inverted computed checks (!this.isAtLeastOneSelectedX)favFlag = true(no-op). Now it always passes the correct flag.How to test
Summary by CodeRabbit