perf(chatScroll): Fix image loading from https url and raw data
perf(chatScroll): Fix comments on Fix image loading from https url and raw data
This commit is contained in:
parent
6c76026d53
commit
2723ef1293
|
@ -13,8 +13,13 @@ Image {
|
|||
fillMode: Image.PreserveAspectFit
|
||||
|
||||
onIconChanged: {
|
||||
if (icon !== "") {
|
||||
source = "../../assets/img/icons/" + icon + ".svg";
|
||||
if(icon.startsWith("data:image/") || icon.startsWith("https://")) {
|
||||
//raw image data
|
||||
source = icon
|
||||
objectName = "custom-icon"
|
||||
}
|
||||
else if (icon !== "") {
|
||||
source = "../../assets/img/icons/" + icon+ ".svg";
|
||||
objectName = icon + "-icon"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue