diff --git a/storybook/pages/UserListPanelPage.qml b/storybook/pages/UserListPanelPage.qml index 714580e981..e198c1e372 100644 --- a/storybook/pages/UserListPanelPage.qml +++ b/storybook/pages/UserListPanelPage.qml @@ -45,7 +45,7 @@ SplitView { // mainModuleInst mock QtObject { function getContactDetailsAsJson(publicKey, getVerificationRequest) { - return JSON.stringify({ ensVerified: false }) + return JSON.stringify({ ensVerified: publicKey === "0x04d1bed192343f470f1255" }) // make Richard "ENS verified" } Component.onCompleted: { Utils.mainModuleInst = this @@ -66,7 +66,7 @@ SplitView { sourceComponent: UserListPanel { usersModel: model - label: "Some label" + label: "Members" } } } diff --git a/ui/app/AppLayouts/Chat/panels/UserListPanel.qml b/ui/app/AppLayouts/Chat/panels/UserListPanel.qml index adbbc887f9..4240b4f8f2 100644 --- a/ui/app/AppLayouts/Chat/panels/UserListPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/UserListPanel.qml @@ -90,13 +90,10 @@ Item { model: SortFilterProxyModel { sourceModel: root.usersModel - proxyRoles: FastExpressionRole { - function displayNameProxy(nickname, ensName, displayName, aliasName) { - return ProfileUtils.displayName(nickname, ensName, displayName, aliasName) - } + proxyRoles: JoinRole { name: "preferredDisplayName" - expectedRoles: ["localNickname", "ensName", "displayName", "alias"] - expression: displayNameProxy(model.localNickname, model.ensName, model.displayName, model.alias) + roleNames: ["localNickname", "ensName", "displayName", "alias"] + separator: "" } sorters: [