Fix displaying preloader on outgoing photos
This commit is contained in:
parent
bba0e0fbca
commit
91a8e9b12a
@ -836,7 +836,7 @@ export function wrapPhoto({photo, message, container, boxWidth, boxHeight, withT
|
|||||||
const needFadeIn = (thumbImage || !cacheContext.downloaded) && rootScope.settings.animationsEnabled && !noFadeIn;
|
const needFadeIn = (thumbImage || !cacheContext.downloaded) && rootScope.settings.animationsEnabled && !noFadeIn;
|
||||||
|
|
||||||
let preloader: ProgressivePreloader;
|
let preloader: ProgressivePreloader;
|
||||||
if(message?.media?.preloader) { // means upload
|
if(message?.media?.preloader && !withoutPreloader) { // means upload
|
||||||
preloader = message.media.preloader;
|
preloader = message.media.preloader;
|
||||||
preloader.attach(container);
|
preloader.attach(container);
|
||||||
noAutoDownload = undefined;
|
noAutoDownload = undefined;
|
||||||
|
@ -283,7 +283,7 @@ ul.chatlist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.animating {
|
&.animating {
|
||||||
transition: background-color .2s ease-in-out, transform .2s ease-in-out;
|
transition: background-color .2s var(--transition-standard-easing), transform .2s var(--transition-standard-easing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user