Don't try to play a video if we're not looking at a video
Avoids an owsFailDebug.
This commit is contained in:
parent
7695cd7827
commit
1b20d79352
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user