Skip to content

Commit

Permalink
remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
iurimatias committed Sep 13, 2024
1 parent 5749018 commit c27d82c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
10 changes: 4 additions & 6 deletions ui/imports/shared/views/chat/ProfileContextMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Item {
selectedUserIcon: root.selectedUserIcon
hideDisabledItems: root.hideDisabledItems
margins: root.margins
ensVerified: root.ensVerified // Pass ensVerified
ensVerified: root.ensVerified
onlineStatus: root.onlineStatus
onOpened: root.openedHandler && root.openedHandler()
onClosed: root.closedHandler && root.closedHandler()
Expand All @@ -143,7 +143,7 @@ Item {
margins: root.margins
trustStatus: root.trustStatus
contactType: root.contactType
ensVerified: root.ensVerified // Pass ensVerified
ensVerified: root.ensVerified
onlineStatus: root.onlineStatus
onOpened: root.openedHandler && root.openedHandler()
onClosed: root.closedHandler && root.closedHandler()
Expand All @@ -160,7 +160,7 @@ Item {
selectedUserIcon: root.selectedUserIcon
hideDisabledItems: root.hideDisabledItems
margins: root.margins
ensVerified: root.ensVerified // Pass ensVerified
ensVerified: root.ensVerified
onOpened: root.openedHandler && root.openedHandler()
onClosed: root.closedHandler && root.closedHandler()
}
Expand All @@ -176,7 +176,7 @@ Item {
selectedUserIcon: root.selectedUserIcon
hideDisabledItems: root.hideDisabledItems
margins: root.margins
ensVerified: root.ensVerified // Pass ensVerified
ensVerified: root.ensVerified
onlineStatus: root.onlineStatus
onOpened: root.openedHandler && root.openedHandler()
onClosed: root.closedHandler && root.closedHandler()
Expand All @@ -197,7 +197,6 @@ Item {
closed()
}

// Add this function to expose the popup() method
function popup() {
if (menuLoader.item && typeof menuLoader.item.popup === "function") {
menuLoader.item.popup()
Expand All @@ -206,7 +205,6 @@ Item {
}
}

// Add these functions to handle onOpened and onClosed
function setOpenedHandler(handler) {
openedHandler = handler
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ StatusMenu {
property int onlineStatus: Constants.onlineStatus.unknown

onClosed: {
// Reset selectedUserPublicKey so that associated properties get recalculated on re-open
selectedUserPublicKey = ""
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ StatusMenu {
signal blockContact(string publicKey)

onClosed: {
// Reset selectedUserPublicKey so that associated properties get recalculated on re-open
selectedUserPublicKey = ""
contactType = Constants.contactType.nonContact // Reset contactType to default value
contactType = Constants.contactType.nonContact
}

ProfileHeader {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ StatusMenu {
signal openProfileClicked(string publicKey)

onClosed: {
// Reset selectedUserPublicKey so that associated properties get recalculated on re-open
selectedUserPublicKey = ""
}

Expand Down

0 comments on commit c27d82c

Please sign in to comment.