fix: audio pause condition logic issue

This commit is contained in:
CMK 2021-04-08 14:11:35 +08:00
parent 74ee93e983
commit 0c8134463f
1 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,8 @@ extension StatusTableViewCellDelegate where Self: StatusProvider {
videoPlayerViewModel.didEndDisplaying()
}
}
if let currentAudioAttachment = self.context.audioPlaybackService.attachment, let _ = status?.mediaAttachments?.contains(currentAudioAttachment) {
if let currentAudioAttachment = self.context.audioPlaybackService.attachment,
status?.mediaAttachments?.contains(currentAudioAttachment) == true {
self.context.audioPlaybackService.pause()
}
}