mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Properly calculate thumbnail size
This commit is contained in:
@@ -453,7 +453,7 @@ export async function captureDimensionsAndScreenshot(
|
||||
contentType: THUMBNAIL_CONTENT_TYPE,
|
||||
width: THUMBNAIL_SIZE,
|
||||
height: THUMBNAIL_SIZE,
|
||||
size: 100,
|
||||
size: thumbnailBuffer.byteLength,
|
||||
},
|
||||
};
|
||||
} catch (error) {
|
||||
@@ -513,7 +513,7 @@ export async function captureDimensionsAndScreenshot(
|
||||
contentType: THUMBNAIL_CONTENT_TYPE,
|
||||
width: THUMBNAIL_SIZE,
|
||||
height: THUMBNAIL_SIZE,
|
||||
size: 100,
|
||||
size: thumbnailBuffer.byteLength,
|
||||
},
|
||||
width,
|
||||
height,
|
||||
|
||||
Reference in New Issue
Block a user