Remove unused context arguments in RecipientUtil.

This commit is contained in:
Cody Henthorne
2022-10-06 08:57:30 -04:00
committed by Greyson Parrelli
parent db0bca00ec
commit bef83e4c0c
14 changed files with 50 additions and 50 deletions

View File

@@ -136,7 +136,7 @@ public abstract class WebRtcActionProcessor {
SignalServiceCallMessage callMessage = SignalServiceCallMessage.forOffer(offerMessage, true, destinationDeviceId);
Recipient callRecipient = currentState.getCallInfoState().getCallRecipient();
RecipientUtil.shareProfileIfFirstSecureMessage(context, callRecipient);
RecipientUtil.shareProfileIfFirstSecureMessage(callRecipient);
webRtcInteractor.sendCallMessage(callMetadata.getRemotePeer(), callMessage);
return currentState;
@@ -179,7 +179,7 @@ public abstract class WebRtcActionProcessor {
return currentState;
}
if (!RecipientUtil.isCallRequestAccepted(context.getApplicationContext(), callMetadata.getRemotePeer().getRecipient())) {
if (!RecipientUtil.isCallRequestAccepted(callMetadata.getRemotePeer().getRecipient())) {
Log.w(tag, "Caller is untrusted.");
currentState = currentState.getActionProcessor().handleSendHangup(currentState, callMetadata, WebRtcData.HangupMetadata.fromType(HangupMessage.Type.NEED_PERMISSION), true);
webRtcInteractor.insertMissedCall(callMetadata.getRemotePeer(), receivedOfferMetadata.getServerReceivedTimestamp(), offerMetadata.getOfferType() == OfferMessage.Type.VIDEO_CALL);