fix: apply proxy model to collectiblesModel
This is needed to render commnity NFT artwork
This commit is contained in:
parent
7aaa16a0c4
commit
2ca8fd04e2
|
@ -82,8 +82,17 @@ QtObject {
|
|||
}
|
||||
}
|
||||
|
||||
property var collectiblesModel: chatCommunitySectionModule.collectiblesModel
|
||||
property var collectiblesModel: SortFilterProxyModel {
|
||||
sourceModel: chatCommunitySectionModule.collectiblesModel
|
||||
|
||||
proxyRoles: ExpressionRole {
|
||||
function icon(icon) {
|
||||
return !!icon ? icon : Style.png("tokens/DEFAULT-TOKEN")
|
||||
}
|
||||
name: "iconSource"
|
||||
expression: icon(model.icon)
|
||||
}
|
||||
}
|
||||
// Since qml component doesn't follow encaptulation from the backend side, we're introducing
|
||||
// a method which will return appropriate chat content module for selected chat/channel
|
||||
function currentChatContentModule(){
|
||||
|
|
Loading…
Reference in New Issue