@@ -942,22 +942,26 @@ final class StoryItemContentComponent: Component {
942942 }
943943 }
944944
945- if let messageMedia, case . liveStream = messageMedia, !component. isEmbeddedInCamera {
946- self . imageView. update (
947- context: component. context,
948- strings: component. strings,
949- peer: component. peer,
950- storyId: component. item. id,
951- media: messageMedia,
952- size: availableSize,
953- isCaptureProtected: component. item. isForwardingDisabled,
954- attemptSynchronous: synchronousLoad,
955- transition: transition
956- )
957- if !self . contentLoaded || component. isVideoBuffering {
958- self . imageView. isHidden = false
959- } else {
945+ if let messageMedia, case . liveStream = messageMedia {
946+ if component. isEmbeddedInCamera {
960947 self . imageView. isHidden = true
948+ } else {
949+ self . imageView. update (
950+ context: component. context,
951+ strings: component. strings,
952+ peer: component. peer,
953+ storyId: component. item. id,
954+ media: messageMedia,
955+ size: availableSize,
956+ isCaptureProtected: component. item. isForwardingDisabled,
957+ attemptSynchronous: synchronousLoad,
958+ transition: transition
959+ )
960+ if !self . contentLoaded || component. isVideoBuffering {
961+ self . imageView. isHidden = false
962+ } else {
963+ self . imageView. isHidden = true
964+ }
961965 }
962966 }
963967
0 commit comments