bug6187: quick fix; set the field in FavoritesResult's constructor and negate User.getDidOptOutOfFeatureAndCommunityEmails() before passing as isSubscribedToFeatureAndCommunityUpdates

This commit is contained in:
Axel Uhl
2026-04-20 13:20:11 +02:00
parent 54ddd178b9
commit 01637f89c6
2 changed files with 2 additions and 2 deletions
@@ -13,6 +13,7 @@ public class FavoritesResult implements Result {
public FavoritesResult(FavoriteBoatClassesDTO favoriteBoatClasses, FavoriteCompetitorsDTO favoriteCompetitors, boolean isSubscribedToFeatureAndCommunityUpdates) {
this.favoriteBoatClasses = favoriteBoatClasses;
this.favoriteCompetitors = favoriteCompetitors;
this.isSubscribedToFeatureAndCommunityUpdates = isSubscribedToFeatureAndCommunityUpdates;
}
public FavoriteBoatClassesDTO getFavoriteBoatClasses() {
@@ -26,5 +27,4 @@ public class FavoritesResult implements Result {
public boolean getIsSubscribedToFeatureAndCommunityUpdates() {
return isSubscribedToFeatureAndCommunityUpdates;
}
}
@@ -26,7 +26,7 @@ public class GetFavoritesAction implements SailingAction<FavoritesResult> {
@GwtIncompatible
public FavoritesResult execute(SailingDispatchContext ctx) throws DispatchException {
return new FavoritesResult(getFavoriteBoatClasses(ctx), getFavoriteCompetitors(ctx),
getDidOptOutOfFeatureAndCommunityEmails(ctx));
!getDidOptOutOfFeatureAndCommunityEmails(ctx));
}
@GwtIncompatible