[Perf] Middle Header: Do not render video avatar when opening chat

This commit is contained in:
Alexander Zinchuk 2022-09-13 10:22:49 +02:00
parent b7bf020eb4
commit 678d5278c8

View File

@ -339,7 +339,7 @@ const MiddleHeader: FC<OwnProps & StateProps> = ({
withFullInfo
withMediaViewer
withUpdatingStatus
withVideoAvatar
withVideoAvatar={isReady}
noRtl
/>
) : (
@ -351,7 +351,7 @@ const MiddleHeader: FC<OwnProps & StateProps> = ({
withMediaViewer
withFullInfo
withUpdatingStatus
withVideoAvatar
withVideoAvatar={isReady}
noRtl
/>
)}