Fix/improve image sizes

This commit is contained in:
miruka
2019-11-05 09:19:48 -04:00
parent e4b784b407
commit 7408322fbe
6 changed files with 47 additions and 22 deletions

View File

@@ -42,8 +42,8 @@ HImage {
if (! image) return // if it was destroyed
if (! image.mxc.startsWith("mxc://")) {
source = mxc
show = image.visible
if (source != mxc) source = mxc
show = image.visible
return
}
@@ -54,8 +54,8 @@ HImage {
py.callClientCoro(
clientUserId, "media_cache." + method, args, path => {
if (! image) return
image.cachedPath = path
show = image.visible
if (image.cachedPath != path) image.cachedPath = path
show = image.visible
}
)
}