Message / WebPage: Fix square video layout (#1248)

This commit is contained in:
Alexander Zinchuk 2021-07-07 23:14:56 +03:00
parent 623dbfaf76
commit ca8e1f0d7a

View File

@ -43,7 +43,7 @@ const WebPage: FC<OwnProps> = ({
const webPage = getMessageWebPage(message);
let isSquarePhoto = false;
if (webPage && webPage.photo) {
if (webPage && webPage.photo && !webPage.video) {
const { width, height } = calculateMediaDimensions(message);
isSquarePhoto = width === height;
}