Skip to content

Commit

Permalink
Merge pull request #1 from waam-app/massbridge-changes
Browse files Browse the repository at this point in the history
Set options to nil when none passed - Massbridge changes
  • Loading branch information
brianpmarks authored May 28, 2021
2 parents 9bfb2b2 + ca24039 commit 2b16997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNAudioSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ + (void)initialize {
if (_options[options] != nil) {
[[AVAudioSession sharedInstance] setCategory:cat withOptions:[_options[options] integerValue] error:&error];
} else {
[[AVAudioSession sharedInstance] setCategory:cat error:&error];
[[AVAudioSession sharedInstance] setCategory:cat withOptions:nil error:&error];
}
if (error) {
reject(@"setCategory", @"Could not set category.", error);
Expand Down

0 comments on commit 2b16997

Please sign in to comment.