rename method to better reflect how its used

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 7e825648ef
commit cd36123bf1

@ -93,7 +93,7 @@ import Foundation
}
private func initiateWebRTCAudioCall(recipientId: String) -> Bool {
callUIAdapter.callBack(recipientId: recipientId)
callUIAdapter.startAndShowOutgoingCall(recipientId: recipientId)
return true
}

@ -24,7 +24,7 @@ protocol CallUIAdaptee {
func failCall(_ call: SignalCall, error: CallError)
func setIsMuted(call: SignalCall, isMuted: Bool)
func setHasLocalVideo(call: SignalCall, hasLocalVideo: Bool)
func callBack(recipientId: String)
func startAndShowOutgoingCall(recipientId: String)
}
// Shared default implementations
@ -42,7 +42,7 @@ extension CallUIAdaptee {
notificationsAdapter.presentMissedCall(call, callerName: callerName)
}
internal func callBack(recipientId: String) {
internal func startAndShowOutgoingCall(recipientId: String) {
AssertIsOnMainThread()
guard self.callService.call == nil else {
@ -136,10 +136,10 @@ extension CallUIAdaptee {
adaptee.declineCall(call)
}
internal func callBack(recipientId: String) {
internal func startAndShowOutgoingCall(recipientId: String) {
AssertIsOnMainThread()
adaptee.callBack(recipientId: recipientId)
adaptee.startAndShowOutgoingCall(recipientId: recipientId)
}
internal func recipientAcceptedCall(_ call: SignalCall) {

@ -1,9 +1,5 @@
//
// PushManager.m
// Signal
//
// Created by Frederic Jacobs on 31/07/14.
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "PushManager.h"
@ -325,7 +321,7 @@
return;
}
[self.callUIAdapter callBackWithRecipientId:recipientId];
[self.callUIAdapter startAndShowOutgoingCallWithRecipientId:recipientId];
} else {
DDLogDebug(@"%@ Unhandled action with identifier: %@", self.tag, identifier);

Loading…
Cancel
Save