mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:02:10 +00:00
Removing dead code part 3 (#2264)
This commit is contained in:
@@ -162,19 +162,6 @@ class CallScreenViewModel: CallScreenViewModelType, CallScreenViewModelProtocol
|
||||
"""
|
||||
}
|
||||
|
||||
private func evaluateJavaScript(_ script: String) async -> String? {
|
||||
guard let evaluator = state.bindings.javaScriptEvaluator else {
|
||||
fatalError("Invalid javaScriptEvaluator")
|
||||
}
|
||||
|
||||
do {
|
||||
return try await evaluator(script) as? String
|
||||
} catch {
|
||||
MXLog.error("Failed evaluating javaScript with error: \(error)")
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
private func setupVoIPSession(callID: UUID) async throws {
|
||||
try AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode: .videoChat, options: [])
|
||||
try AVAudioSession.sharedInstance().setActive(true, options: .notifyOthersOnDeactivation)
|
||||
|
||||
Reference in New Issue
Block a user