chore(InviteFriendsToCommunityPopup): Adjust search behavior

This commit is contained in:
Michał Cieślak 2023-05-11 12:57:00 +02:00 committed by Michał
parent 6fcb533b68
commit c0e4d70f0a
3 changed files with 3 additions and 4 deletions

View File

@ -80,6 +80,8 @@ SplitView {
modal: false
anchors.centerIn: parent
closePolicy: Popup.NoAutoClose
community: ({
id: "communityId",
name: "community-name"

View File

@ -74,7 +74,7 @@ StatusStackModal {
objectName: "InviteFriendsToCommunityPopup_SendButton"
implicitHeight: d.footerButtonsHeight
enabled: root.pubKeys.length > 0
text: qsTr("Send Invites")
text: qsTr("Send %n invite(s)", "", root.pubKeys.length)
onClicked: {
d.sendInvites(root.pubKeys, root.inviteMessage);
root.close();

View File

@ -57,9 +57,6 @@ Item {
root.hideCommunityMembers
root.communityId
if (root.pubKeys.indexOf(model.pubKey) > -1)
return true
if (!model.isContact || model.isBlocked)
return false