Update Ghostgram features

This commit is contained in:
ichmagmaus 812
2026-03-07 18:15:32 +01:00
parent 32b0dddcd9
commit 13a43b9068
902 changed files with 148302 additions and 62355 deletions
@@ -1,3 +1,4 @@
import SGSimpleSettings
import Foundation
import UIKit
import SwiftSignalKit
@@ -1071,6 +1072,10 @@ public final class ManagedAudioSessionImpl: NSObject, ManagedAudioSession {
var alreadySet = false
if self.isHeadsetPluggedInValue {
if case .voiceCall = updatedType, case .custom(.builtin) = outputMode {
} else if SGSimpleSettings.shared.forceBuiltInMic {
let _ = try? AVAudioSession.sharedInstance().setPreferredInput(
routes.first { $0.portType == .builtInMic }
)
} else {
loop: for route in routes {
switch route.portType {