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