fix: audio pause condition logic issue
This commit is contained in:
parent
74ee93e983
commit
0c8134463f
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue