fix: Share invite link of rooms

This commit is contained in:
Krille 2024-02-04 06:56:03 +01:00
parent e68306c8b3
commit 46a12d5225
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 10 additions and 1 deletions

View file

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

View file

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

View file

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