diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/InviteFriendsToCommunityPopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/InviteFriendsToCommunityPopup.qml index 466d516274..c23faec4b7 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/InviteFriendsToCommunityPopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/InviteFriendsToCommunityPopup.qml @@ -11,6 +11,7 @@ import "../components" ModalPopup { id: popup + property string communityId: chatsModel.communities.activeCommunity.id property var pubKeys: [] property var goBack @@ -36,8 +37,8 @@ ModalPopup { anchors.top: parent.top //% "Share community" label: qsTrId("share-community") - text: "https://join.status.im/u/TODO" - textToCopy: text + text: `${Constants.communityLinkPrefix}${communityId.substring(0, 4)}...${communityId.substring(communityId.length -2)}` + textToCopy: Constants.communityLinkPrefix + communityId } Separator { diff --git a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml index 2f061fe39d..4bda9c7a58 100644 --- a/ui/app/AppLayouts/Chat/components/ProfilePopup.qml +++ b/ui/app/AppLayouts/Chat/components/ProfilePopup.qml @@ -187,11 +187,10 @@ ModalPopup { id: valueShareURL //% "Share Profile URL" label: qsTrId("share-profile-url") - text: "https://join.status.im/u/" + fromAuthor.substr( - 0, 4) + "..." + fromAuthor.substr(fromAuthor.length - 5) + text: Constants.userLinkPrefix + fromAuthor.substr(0, 4) + "..." + fromAuthor.substr(fromAuthor.length - 5) anchors.top: separator.top anchors.topMargin: popup.innerMargin - textToCopy: "https://join.status.im/u/" + fromAuthor + textToCopy: Constants.userLinkPrefix + fromAuthor } Separator { diff --git a/ui/app/AppLayouts/Profile/Sections/MyProfileContainer.qml b/ui/app/AppLayouts/Profile/Sections/MyProfileContainer.qml index 3b55aacade..23813e982d 100644 --- a/ui/app/AppLayouts/Profile/Sections/MyProfileContainer.qml +++ b/ui/app/AppLayouts/Profile/Sections/MyProfileContainer.qml @@ -146,8 +146,8 @@ Item { TextWithLabel { //% "Share Profile URL" label: qsTrId("share-profile-url") - text: `https://join.status.im/u/${pubkey.substring(0, 5)}...${pubkey.substring(pubkey.length - 5)}` - textToCopy: `https://join.status.im/u/${pubkey}` + text: `${Constants.userLinkPrefix}${pubkey.substring(0, 5)}...${pubkey.substring(pubkey.length - 5)}` + textToCopy: Constants.userLinkPrefix + pubkey } } } diff --git a/ui/imports/Constants.qml b/ui/imports/Constants.qml index ffef294958..41d9298009 100644 --- a/ui/imports/Constants.qml +++ b/ui/imports/Constants.qml @@ -117,6 +117,8 @@ QtObject { readonly property string deepLinkPrefix: 'statusim://' readonly property string joinStatusLink: 'join.status.im' + readonly property string communityLinkPrefix: 'https://join.status.im/cc/' + readonly property string userLinkPrefix: 'https://join.status.im/u/' readonly property int maxUploadFiles: 5 readonly property double maxUploadFilesizeMB: 0.5