Count reported messages per sender

This commit is contained in:
Jon Chambers
2021-10-18 15:14:36 -04:00
committed by Jon Chambers
parent 40f7e6e994
commit c91d5c2fdb
9 changed files with 106 additions and 17 deletions

View File

@@ -43,6 +43,7 @@ import org.whispersystems.textsecuregcm.configuration.RecaptchaV2Configuration;
import org.whispersystems.textsecuregcm.configuration.RedisClusterConfiguration;
import org.whispersystems.textsecuregcm.configuration.RedisConfiguration;
import org.whispersystems.textsecuregcm.configuration.RemoteConfigConfiguration;
import org.whispersystems.textsecuregcm.configuration.ReportMessageConfiguration;
import org.whispersystems.textsecuregcm.configuration.SecureBackupServiceConfiguration;
import org.whispersystems.textsecuregcm.configuration.SecureStorageServiceConfiguration;
import org.whispersystems.textsecuregcm.configuration.StripeConfiguration;
@@ -318,6 +319,11 @@ public class WhisperServerConfiguration extends Configuration {
// TODO: Mark as @NotNull when enabled for production.
private SubscriptionConfiguration subscription;
@Valid
@NotNull
@JsonProperty
private ReportMessageConfiguration reportMessage;
private Map<String, String> transparentDataIndex = new HashMap<>();
public StripeConfiguration getStripe() {
@@ -545,4 +551,8 @@ public class WhisperServerConfiguration extends Configuration {
public SubscriptionConfiguration getSubscription() {
return subscription;
}
public ReportMessageConfiguration getReportMessageConfiguration() {
return reportMessage;
}
}