mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-07 23:02:38 +01:00
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
Block a user