Skip to content

Commit

Permalink
fix: Share invite link of rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Feb 4, 2024
1 parent e68306c commit 46a12d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions assets/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 3 additions & 1 deletion lib/pages/chat_details/chat_details_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
Expand Down

0 comments on commit 46a12d5

Please sign in to comment.