Update message reporting to use sender ACI instead of E164.

Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
Chris Eager
2022-03-30 09:50:22 -07:00
committed by Cody Henthorne
parent b02539684a
commit 086e3ed4ec
3 changed files with 10 additions and 8 deletions

View File

@@ -804,8 +804,8 @@ public class SignalServiceAccountManager {
return this.pushServiceSocket.getCurrencyConversions();
}
public void reportSpam(String e164, String serverGuid) throws IOException {
this.pushServiceSocket.reportSpam(e164, serverGuid);
public void reportSpam(ServiceId serviceId, String serverGuid) throws IOException {
this.pushServiceSocket.reportSpam(serviceId, serverGuid);
}
/**

View File

@@ -2477,10 +2477,10 @@ public class PushServiceSocket {
}
}
public void reportSpam(String e164, String serverGuid)
public void reportSpam(ServiceId serviceId, String serverGuid)
throws NonSuccessfulResponseCodeException, MalformedResponseException, PushNetworkException
{
makeServiceRequest(String.format(REPORT_SPAM, e164, serverGuid), "POST", "");
makeServiceRequest(String.format(REPORT_SPAM, serviceId.toString(), serverGuid), "POST", "");
}
private static class VerificationCodeResponseHandler implements ResponseCodeHandler {