Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 593c684fcb
commit fc07c7c04f

@ -1435,7 +1435,7 @@ protocol CallServiceObserver: class {
AssertIsOnMainThread() AssertIsOnMainThread()
if case CallError.assertionError(description:let description) = error { if case CallError.assertionError(description:let description) = error {
Logger.error(description) owsFail(description)
} }
if let failedCall = failedCall { if let failedCall = failedCall {

@ -65,9 +65,7 @@ NS_ASSUME_NONNULL_BEGIN
callback(YES); callback(YES);
} else if (status == AVAuthorizationStatusNotDetermined) { } else if (status == AVAuthorizationStatusNotDetermined) {
[AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo [AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo
completionHandler:^(BOOL granted) { completionHandler:callback];
callback(granted);
}];
} else { } else {
DDLogError(@"Unknown AVAuthorizationStatus: %ld", (long)status); DDLogError(@"Unknown AVAuthorizationStatus: %ld", (long)status);
callback(NO); callback(NO);
@ -91,9 +89,7 @@ NS_ASSUME_NONNULL_BEGIN
return; return;
} }
[[AVAudioSession sharedInstance] requestRecordPermission:^(BOOL granted) { [[AVAudioSession sharedInstance] requestRecordPermission:callback];
callback(granted);
}];
} }
@end @end

Loading…
Cancel
Save