Don't try to play a video if we're not looking at a video

Avoids an owsFailDebug.
This commit is contained in:
Jordan Rose 2021-01-14 18:16:29 -08:00
parent 7695cd7827
commit 1b20d79352

View File

@ -117,7 +117,7 @@ NS_ASSUME_NONNULL_BEGIN
{
[super viewDidAppear:animated];
if (self.shouldAutoPlayVideo && !self.hasAutoPlayedVideo) {
if (self.isVideo && self.shouldAutoPlayVideo && !self.hasAutoPlayedVideo) {
[self playVideo];
self.hasAutoPlayedVideo = YES;