fix: only show warning when mute is set to false (#2062)

fix: only show audio permission warning when mute is set to false
This commit is contained in:
Laurin Quast 2019-01-22 16:08:31 +01:00 committed by GitHub
parent 0b583ade4d
commit 8dbc79ef6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,7 +426,7 @@ export default class Camera extends React.Component<PropsType, StateType> {
if (__DEV__) {
if (
(options.mute || captureAudio) &&
(!options.mute || captureAudio) &&
recordAudioPermissionStatus !== RecordAudioPermissionStatusEnum.AUTHORIZED
) {
// eslint-disable-next-line no-console