Never display badges if they are not enabled via feature flag.

fork-5.53.8
Alex Hart 2021-10-12 16:38:15 -03:00
rodzic 62fa99e0ee
commit ce9cd132ec
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -432,7 +432,7 @@ public class Recipient {
this.systemContactName = details.systemContactName; this.systemContactName = details.systemContactName;
this.extras = details.extras; this.extras = details.extras;
this.hasGroupsInCommon = details.hasGroupsInCommon; this.hasGroupsInCommon = details.hasGroupsInCommon;
this.badges = details.badges; this.badges = FeatureFlags.donorBadges() ? details.badges : Collections.emptyList();
} }
public @NonNull RecipientId getId() { public @NonNull RecipientId getId() {