diff --git a/CHANGELOG.md b/CHANGELOG.md index e4eb91e59..9eab2994e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index a03fb5c02..7a3ea47db 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -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": { diff --git a/lib/pages/chat_details/chat_details_view.dart b/lib/pages/chat_details/chat_details_view.dart index f15da4fc9..d2e9c850b 100644 --- a/lib/pages/chat_details/chat_details_view.dart +++ b/lib/pages/chat_details/chat_details_view.dart @@ -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, ), ),