Merge pull request #118 from jgibbon/feature/copy-chat-invite-link

Remove clipboard workaround
This commit is contained in:
Sebastian Wolf 2020-11-01 19:28:03 +01:00 committed by GitHub
commit 11a1018ad9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -400,20 +400,9 @@ Page {
icon.source: "image://theme/icon-m-clipboard"
anchors.verticalCenter: inviteLinkItem.verticalCenter
onClicked: {
inviteLinkField.selectAll();
inviteLinkField.copy();
inviteLinkField.select(0,0);
Clipboard.text = groupFullInformation.invite_link
infoNotification.show(qsTr("The Invite Link has been copied to the clipboard."));
}
TextField {
id: inviteLinkField
width: 0
height: 0
text: groupFullInformation.invite_link ? groupFullInformation.invite_link : ""
visible: false
readOnly: true
opacity: 0
}
}
}