mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Message / WebPage: Fix square video layout (#1248)
This commit is contained in:
parent
623dbfaf76
commit
ca8e1f0d7a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user