fix: fix signals not passing the callback
Fixes #8038 We added a callback arg to the signals, but signals do not support default args. You need to pass the exact number of args.
This commit is contained in:
parent
cea4945cba
commit
afaf7717e8
|
@ -89,7 +89,8 @@ Rectangle {
|
|||
anchors.topMargin: Style.current.padding
|
||||
onClicked: {
|
||||
Global.openInviteFriendsToCommunityPopup(root.activeCommunity,
|
||||
root.communitySectionModule)
|
||||
root.communitySectionModule,
|
||||
null)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -192,7 +192,8 @@ Item {
|
|||
enabled: communityData.canManageUsers && adminPopupMenu.showInviteButton
|
||||
onTriggered: {
|
||||
Global.openInviteFriendsToCommunityPopup(root.communityData,
|
||||
root.communitySectionModule)
|
||||
root.communitySectionModule,
|
||||
null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -267,7 +268,8 @@ Item {
|
|||
enabled: communityData.canManageUsers
|
||||
onTriggered: {
|
||||
Global.openInviteFriendsToCommunityPopup(root.communityData,
|
||||
root.communitySectionModule)
|
||||
root.communitySectionModule,
|
||||
null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -209,7 +209,8 @@ StatusSectionLayout {
|
|||
|
||||
onInviteNewPeopleClicked: {
|
||||
Global.openInviteFriendsToCommunityPopup(root.community,
|
||||
root.chatCommunitySectionModule)
|
||||
root.chatCommunitySectionModule,
|
||||
null)
|
||||
}
|
||||
|
||||
onAirdropTokensClicked: { /* TODO in future */ }
|
||||
|
|
|
@ -69,7 +69,8 @@ SettingsContentBase {
|
|||
|
||||
onInviteFriends: {
|
||||
Global.openInviteFriendsToCommunityPopup(communityData,
|
||||
root.profileSectionStore.communitiesProfileModule)
|
||||
root.profileSectionStore.communitiesProfileModule,
|
||||
null)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ SettingsContentBase {
|
|||
}
|
||||
|
||||
onShowVerificationRequest: {
|
||||
Global.openIncomingIDRequestPopup(publicKey)
|
||||
Global.openIncomingIDRequestPopup(publicKey, null)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -383,7 +383,8 @@ Item {
|
|||
enabled: model.canManageUsers
|
||||
onTriggered: {
|
||||
Global.openInviteFriendsToCommunityPopup(model,
|
||||
communityContextMenu.chatCommunitySectionModule)
|
||||
communityContextMenu.chatCommunitySectionModule,
|
||||
null)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ StatusPopupMenu {
|
|||
readonly property bool isContact: {
|
||||
return root.selectedUserPublicKey !== "" && !!contactDetails.isContact
|
||||
}
|
||||
readonly property bool isBlockedContact: !!d.contactDetails && d.contactDetails.isBlocked
|
||||
readonly property bool isBlockedContact: (!!d.contactDetails && d.contactDetails.isBlocked) || false
|
||||
|
||||
readonly property int outgoingVerificationStatus: {
|
||||
if (root.selectedUserPublicKey === "" || root.isMe || !root.isContact) {
|
||||
|
@ -197,7 +197,7 @@ StatusPopupMenu {
|
|||
: Constants.trustStatus.unknown
|
||||
isContact: root.isContact
|
||||
isCurrentUser: root.isMe
|
||||
userIsEnsVerified: !!d.contactDetails && d.contactDetails.ensVerified
|
||||
userIsEnsVerified: (!!d.contactDetails && d.contactDetails.ensVerified) || false
|
||||
}
|
||||
|
||||
Item {
|
||||
|
@ -256,7 +256,7 @@ StatusPopupMenu {
|
|||
enabled: root.isProfile && !root.isMe && !root.isContact
|
||||
&& !root.isBlockedContact && !root.hasPendingContactRequest
|
||||
onTriggered: {
|
||||
Global.openContactRequestPopup(root.selectedUserPublicKey)
|
||||
Global.openContactRequestPopup(root.selectedUserPublicKey, null)
|
||||
root.close()
|
||||
}
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ StatusPopupMenu {
|
|||
&& root.outgoingVerificationStatus === Constants.verificationStatus.unverified
|
||||
&& !root.hasReceivedVerificationRequestFrom
|
||||
onTriggered: {
|
||||
Global.openSendIDRequestPopup(root.selectedUserPublicKey)
|
||||
Global.openSendIDRequestPopup(root.selectedUserPublicKey, null)
|
||||
root.close()
|
||||
}
|
||||
}
|
||||
|
@ -286,9 +286,9 @@ StatusPopupMenu {
|
|||
|| root.isVerificationRequestSent)
|
||||
onTriggered: {
|
||||
if (hasReceivedVerificationRequestFrom) {
|
||||
Global.openIncomingIDRequestPopup(root.selectedUserPublicKey)
|
||||
Global.openIncomingIDRequestPopup(root.selectedUserPublicKey, null)
|
||||
} else if (root.isVerificationRequestSent) {
|
||||
Global.openOutgoingIDRequestPopup(root.selectedUserPublicKey)
|
||||
Global.openOutgoingIDRequestPopup(root.selectedUserPublicKey, null)
|
||||
}
|
||||
|
||||
root.close()
|
||||
|
|
Loading…
Reference in New Issue