Profile Photo: Fix loading problems (#4044)
This commit is contained in:
parent
19d3bf6953
commit
0c5a40bfc1
@ -7,6 +7,7 @@
|
|||||||
.avatar-media {
|
.avatar-media {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spinner-wrapper {
|
.spinner-wrapper {
|
||||||
@ -42,7 +43,6 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: -1;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -119,8 +119,9 @@ export const useMediaProps = ({
|
|||||||
bestImageData = previewBlobUrl;
|
bestImageData = previewBlobUrl;
|
||||||
}
|
}
|
||||||
const bestData = localBlobUrl || fullMediaBlobUrl || (
|
const bestData = localBlobUrl || fullMediaBlobUrl || (
|
||||||
!isVideo ? previewBlobUrl || pictogramBlobUrl || bestImageData : undefined
|
(!isVideoAvatar && !isVideo) ? (previewBlobUrl || pictogramBlobUrl || bestImageData) : undefined
|
||||||
);
|
);
|
||||||
|
|
||||||
const isLocal = Boolean(localBlobUrl);
|
const isLocal = Boolean(localBlobUrl);
|
||||||
const fileName = message
|
const fileName = message
|
||||||
? getMessageFileName(message)
|
? getMessageFileName(message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user