From b5d3a0cff9d61e4dda173153d11f555d978c1ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Wed, 5 Jul 2023 10:38:47 +0200 Subject: [PATCH] fix(Community Permissions): handling collectible icons fixed Closes: #11297 --- ui/app/AppLayouts/Chat/stores/RootStore.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/stores/RootStore.qml b/ui/app/AppLayouts/Chat/stores/RootStore.qml index 1485108e4d..cc67213547 100644 --- a/ui/app/AppLayouts/Chat/stores/RootStore.qml +++ b/ui/app/AppLayouts/Chat/stores/RootStore.qml @@ -48,11 +48,11 @@ QtObject { sourceModel: communitiesModuleInst.collectiblesModel proxyRoles: ExpressionRole { - function icon(icon) { + function collectibleIcon(icon) { return !!icon ? icon : Style.png("tokens/DEFAULT-TOKEN") } name: "iconSource" - expression: icon(model.icon) + expression: collectibleIcon(model.icon) } }