diff --git a/Signal/src/call/CallAudioService.swift b/Signal/src/call/CallAudioService.swift index 133292192..0b311338b 100644 --- a/Signal/src/call/CallAudioService.swift +++ b/Signal/src/call/CallAudioService.swift @@ -22,7 +22,15 @@ struct AudioSource: Hashable { } init(portDescription: AVAudioSessionPortDescription) { - self.init(localizedName: portDescription.portName, + + // portDescription.portName works well for BT linked devices, but if we are using + // the built in mic, we have "iPhone Microphone" which is a little awkward. + // In that case, instead we prefer just the model name e.g. "iPhone" or "iPad" + let localizedName = portDescription.portType == AVAudioSessionPortBuiltInMic ? + UIDevice.current.localizedModel : + portDescription.portName + + self.init(localizedName: localizedName, image:#imageLiteral(resourceName: "button_phone_white"), // TODO isBuiltInSpeaker: false, portDescription: portDescription) diff --git a/Signal/translations/en.lproj/Localizable.strings b/Signal/translations/en.lproj/Localizable.strings index 49be66d5d..df3932cd0 100644 --- a/Signal/translations/en.lproj/Localizable.strings +++ b/Signal/translations/en.lproj/Localizable.strings @@ -140,7 +140,7 @@ "ATTACHMENT_TYPE_VOICE_MESSAGE" = "Voice Message"; /* action sheet button title to enable built in speaker during a call */ -"AUDIO_ROUTE_BUILT_IN_SPEAKER" = "Built in Speaker"; +"AUDIO_ROUTE_BUILT_IN_SPEAKER" = "Speaker"; /* An explanation of the consequences of blocking another user. */ "BLOCK_BEHAVIOR_EXPLANATION" = "Blocked users will not be able to call you or send you messages.";