From 109cb6cdb6c2dd1509239dc19463c853138c63a8 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Wed, 12 Jul 2017 15:15:59 -0400 Subject: [PATCH] rename for clarity // FREEBIE --- Signal/src/ViewControllers/CallViewController.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Signal/src/ViewControllers/CallViewController.swift b/Signal/src/ViewControllers/CallViewController.swift index 456e3c4f8..991160711 100644 --- a/Signal/src/ViewControllers/CallViewController.swift +++ b/Signal/src/ViewControllers/CallViewController.swift @@ -742,17 +742,17 @@ class CallViewController: UIViewController, CallObserver, CallServiceObserver, R } } - func didPressSpeakerphone(sender speakerphoneButton: UIButton) { + func didPressSpeakerphone(sender button: UIButton) { Logger.info("\(TAG) called \(#function)") - speakerphoneButton.isSelected = !speakerphoneButton.isSelected + button.isSelected = !button.isSelected if let call = self.call { - callUIAdapter.setIsSpeakerphoneEnabled(call: call, isEnabled: speakerphoneButton.isSelected) + callUIAdapter.setIsSpeakerphoneEnabled(call: call, isEnabled: button.isSelected) } else { Logger.warn("\(TAG) pressed mute, but call was unexpectedly nil") } } - func didPressTextMessage(sender speakerphoneButton: UIButton) { + func didPressTextMessage(sender button: UIButton) { Logger.info("\(TAG) called \(#function)") dismissIfPossible(shouldDelay:false)