mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 08:40:16 +01:00
Show invisible badges to query for self
This commit is contained in:
@@ -94,7 +94,7 @@ public class ConfiguredProfileBadgeConverter implements ProfileBadgeConverter {
|
||||
|
||||
final ResourceBundle resourceBundle = resourceBundleFactory.createBundle(BASE_NAME, desiredLocale, control);
|
||||
List<Badge> badges = accountBadges.stream()
|
||||
.filter(accountBadge -> accountBadge.isVisible()
|
||||
.filter(accountBadge -> (isSelf || accountBadge.isVisible())
|
||||
&& now.isBefore(accountBadge.getExpiration())
|
||||
&& knownBadges.containsKey(accountBadge.getId()))
|
||||
.map(accountBadge -> {
|
||||
|
||||
@@ -19,7 +19,6 @@ public class SelfBadge extends Badge {
|
||||
private final boolean visible;
|
||||
|
||||
@JsonCreator
|
||||
|
||||
public SelfBadge(
|
||||
@JsonProperty("id") final String id,
|
||||
@JsonProperty("category") final String category,
|
||||
|
||||
Reference in New Issue
Block a user