Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/RNInCallManager/RNInCallManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class RNInCallManager: NSObject, AVAudioPlayerDelegate {
self.audioSessionRouteChangeObserver = self.startObserve(AVAudioSessionRouteChangeNotification, object: nil, queue: nil) { notification in
guard notification.name == AVAudioSessionRouteChangeNotification && notification.userInfo != nil else { return }

if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey]?.unsignedIntegerValue {
if let rawValue = notification.userInfo?[AVAudioSessionRouteChangeReasonKey] as? UInt {
if let type = AVAudioSessionRouteChangeReason(rawValue: rawValue) {
switch type {
case .Unknown:
Expand Down