Fix voice messages not playing if device is muted

pull/332/head
nielsandriesse 4 years ago
parent 6e184022bd
commit 7d91062849

@ -115,6 +115,8 @@ NS_ASSUME_NONNULL_BEGIN
self.delegate.audioPlaybackState = AudioPlaybackState_Playing;
[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: nil];
if (!self.audioPlayer) {
NSError *error;
self.audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:self.mediaUrl error:&error];

Loading…
Cancel
Save