mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 19:00:26 +01:00
Update message reporting to use sender ACI instead of E164.
Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
committed by
Cody Henthorne
parent
b02539684a
commit
086e3ed4ec
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user