fix(Communities): ensure memberlist modal doesn't throw type related warnings

This commit is contained in:
Pascal Precht 2021-08-26 17:22:45 +02:00 committed by Iuri Matias
parent ee69b4264c
commit 4d5716c8c2
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ Item {
StatusListItem {
id: inviteButton
anchors.horizontalCenter: parent.horizontalCenter
visible: root.community.admin || root.community.isAdmin
visible: !!(root.community.admin || root.community.isAdmin)
//% "Invite People"
title: qsTrId("invite-people")
icon.name: "share-ios"
@ -124,7 +124,7 @@ Item {
id: memberItem
property string nickname: appMain.getUserNickname(model.pubKey)
property string profileImage: appMain.getProfileImage(model.pubKey)
property string profileImage: appMain.getProfileImage(model.pubKey) || ""
visible: !!!memberSearch.input.text ||
model.userName.toLowerCase().includes(memberSearch.input.text.toLowerCase()) ||