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 {
id: invitationBubble
InvitationBubble {
communityId: communityId
communityId: root.communityId
anchors.right: !appSettings.useCompactMode && isCurrentUser ? parent.right : undefined
anchors.rightMargin: Style.current.padding
}

View File

@ -43,8 +43,8 @@ Item {
anchors.topMargin: Style.current.bigPadding
//% "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 {