fix: Share invite link of rooms

pull/830/head rc1.17.3-1
Krille 1 year ago
parent e68306c8b3
commit 46a12d5225
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -13,6 +13,7 @@
- fix: Render tg-forward html tags (Krille) - fix: Render tg-forward html tags (Krille)
- fix: Use HapticFeedback.selectionClick() for long press on message (Krille) - fix: Use HapticFeedback.selectionClick() for long press on message (Krille)
- fix: whitespaces sometimes encoded in html message (Krille) - fix: whitespaces sometimes encoded in html message (Krille)
- fix: Share invite links of public rooms (Krille)
## v1.17.2 ## v1.17.2
Another minor bugfix release which also implements private read receipts. Another minor bugfix release which also implements private read receipts.

@ -2184,6 +2184,12 @@
"user": {} "user": {}
} }
}, },
"youInvitedToBy": "📩 You have been invited via link to:\n{alias}",
"@youInvitedToBy": {
"placeholders": {
"alias": {}
}
},
"youInvitedBy": "📩 You have been invited by {user}", "youInvitedBy": "📩 You have been invited by {user}",
"@youInvitedBy": { "@youInvitedBy": {
"placeholders": { "placeholders": {

@ -62,7 +62,9 @@ class ChatDetailsView extends StatelessWidget {
tooltip: L10n.of(context)!.share, tooltip: L10n.of(context)!.share,
icon: Icon(Icons.adaptive.share_outlined), icon: Icon(Icons.adaptive.share_outlined),
onPressed: () => FluffyShare.share( onPressed: () => FluffyShare.share(
AppConfig.inviteLinkPrefix + room.canonicalAlias, L10n.of(context)!.youInvitedToBy(
AppConfig.inviteLinkPrefix + room.canonicalAlias,
),
context, context,
), ),
), ),

Loading…
Cancel
Save