Respond to CR.

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

@ -1434,8 +1434,8 @@ protocol CallServiceObserver: class {
public func handleFailedCall(failedCall: SignalCall?, error: CallError) {
AssertIsOnMainThread()
if case CallError.assertionError(description: let description) = error {
Logger.error(description)
if case CallError.assertionError(description:let description) = error {
owsFail(description)
}
if let failedCall = failedCall {

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

Loading…
Cancel
Save