Skip to content

Commit

Permalink
Update spam reporting token JSON field name.
Browse files Browse the repository at this point in the history
  • Loading branch information
eager-signal committed Feb 23, 2023
1 parent d3c3986 commit ae3ff21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public List<SignalServiceEnvelope> retrieveMessages(boolean allowStories, Messag
entity.getDestinationUuid(),
entity.isUrgent(),
entity.isStory(),
entity.getReportingToken());
entity.getReportSpamToken());
} else {
envelope = new SignalServiceEnvelope(entity.getType(),
entity.getTimestamp(),
Expand All @@ -228,7 +228,7 @@ public List<SignalServiceEnvelope> retrieveMessages(boolean allowStories, Messag
entity.getDestinationUuid(),
entity.isUrgent(),
entity.isStory(),
entity.getReportingToken());
entity.getReportSpamToken());
}

callback.onMessage(envelope);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class SignalServiceEnvelopeEntity {
private Boolean story;

@JsonProperty
private byte[] reportingToken;
private byte[] reportSpamToken;

public SignalServiceEnvelopeEntity() {}

Expand Down Expand Up @@ -104,7 +104,7 @@ public boolean isStory() {
return story != null && story;
}

public byte[] getReportingToken() {
return reportingToken;
public byte[] getReportSpamToken() {
return reportSpamToken;
}
}

0 comments on commit ae3ff21

Please sign in to comment.