fix: fix community not being passed correctly to the invite bubble

This commit is contained in:
Jonathan Rainville 2021-03-17 11:56:27 -04:00 committed by Iuri Matias
parent f3b452188a
commit 23a8de0449
2 changed files with 3 additions and 3 deletions

View File

@ -297,7 +297,7 @@ Item {
Component { Component {
id: invitationBubble id: invitationBubble
InvitationBubble { InvitationBubble {
communityId: communityId communityId: root.communityId
anchors.right: !appSettings.useCompactMode && isCurrentUser ? parent.right : undefined anchors.right: !appSettings.useCompactMode && isCurrentUser ? parent.right : undefined
anchors.rightMargin: Style.current.padding anchors.rightMargin: Style.current.padding
} }

View File

@ -43,8 +43,8 @@ Item {
anchors.topMargin: Style.current.bigPadding anchors.topMargin: Style.current.bigPadding
//% "Share community" //% "Share community"
label: qsTrId("share-community") label: qsTrId("share-community")
text: "https://join.status.im/u/TODO" text: `${Constants.communityLinkPrefix}${communityId.substring(0, 4)}...${communityId.substring(communityId.length -2)}`
textToCopy: text textToCopy: Constants.communityLinkPrefix + communityId
} }
Separator { Separator {