fix: media not response for reblog issue

This commit is contained in:
CMK 2021-03-15 17:52:28 +08:00
parent 988723691e
commit 6a8dee037f
2 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,7 @@ extension StatusTableViewCellDelegate where Self: StatusProvider {
toot(for: cell, indexPath: indexPath)
.sink { [weak self] toot in
guard let self = self else { return }
let toot = toot?.reblog ?? toot
guard let media = (toot?.mediaAttachments ?? Set()).first else { return }
guard let videoPlayerViewModel = self.context.videoPlaybackService.dequeueVideoPlayerViewModel(for: media) else { return }

View File

@ -0,0 +1,8 @@
//
// PlayerContainerView+MediaTypeIndicotorView.swift
// Mastodon
//
// Created by MainasuK Cirno on 2021-3-15.
//
import Foundation