Improve timeline scroll, media layout, avatars, and emoji coverage.
Remember room scroll position across switches, reserve image/video heights from Matrix dimensions, cache authenticated media blobs for avatars, restore jumbo emoji-only messages, and extend emoji font unicode-range for Unicode 15 glyphs.
This commit is contained in:
@@ -59,10 +59,14 @@ export const getImageMsgContent = async (
|
||||
[MATRIX_SPOILER_PROPERTY_NAME]: metadata.markedAsSpoiler,
|
||||
};
|
||||
if (imgEl) {
|
||||
const blurHash = encodeBlurHash(imgEl, 512, scaleYDimension(imgEl.width, 512, imgEl.height));
|
||||
const naturalW = imgEl.naturalWidth || imgEl.width;
|
||||
const naturalH = imgEl.naturalHeight || imgEl.height;
|
||||
const blurHash = encodeBlurHash(imgEl, 512, scaleYDimension(naturalW, 512, naturalH));
|
||||
|
||||
content.info = {
|
||||
...getImageInfo(imgEl, file),
|
||||
w: naturalW,
|
||||
h: naturalH,
|
||||
[MATRIX_BLUR_HASH_PROPERTY_NAME]: blurHash,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user