fix(ProfileContextMenu): do not display extra Send CR when pending
- do not display the "Send contact request" menu item when we've already sent one; happened because now we have an enum for the contact request state
This commit is contained in:
parent
eae2489254
commit
38d6b694fb
|
@ -148,8 +148,9 @@ StatusMenu {
|
||||||
SendContactRequestMenuItem {
|
SendContactRequestMenuItem {
|
||||||
id: sendContactRequestMenuItem
|
id: sendContactRequestMenuItem
|
||||||
objectName: "sendContactRequest_StatusItem"
|
objectName: "sendContactRequest_StatusItem"
|
||||||
enabled: !root.isMe && !root.isContact
|
enabled: !root.isMe && !root.isContact && !root.isBlockedContact
|
||||||
&& !root.isBlockedContact && !root.hasPendingContactRequest && !root.isBridgedAccount
|
&& (contactDetails.contactRequestState === Constants.ContactRequestState.None || contactDetails.contactRequestState === Constants.ContactRequestState.Dismissed)
|
||||||
|
&& !root.isBridgedAccount
|
||||||
onTriggered: Global.openContactRequestPopup(root.selectedUserPublicKey, root.contactDetails, null)
|
onTriggered: Global.openContactRequestPopup(root.selectedUserPublicKey, root.contactDetails, null)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue