Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"@unsubscribeConfirmationDialogTitle": {
"description": "Title for a confirmation dialog for unsubscribing from a channel.",
"placeholders": {
"channelName": {"type": "String", "example": "mobile"}
"channelName": {"type": "String", "example": "#mobile"}
}
},
"unsubscribeConfirmationDialogMessageCannotResubscribe": "Once you leave this channel, you will not be able to rejoin.",
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/action_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ class UnsubscribeButton extends ActionSheetMenuItemButton {
final zulipLocalizations = ZulipLocalizations.of(pageContext);

final dialog = showSuggestedActionDialog(context: pageContext,
title: zulipLocalizations.unsubscribeConfirmationDialogTitle(subscription.name),
title: zulipLocalizations.unsubscribeConfirmationDialogTitle('#${subscription.name}'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should get a matching change in the example for this placeholder in app_en.arb.

message: zulipLocalizations.unsubscribeConfirmationDialogMessageCannotResubscribe,
destructiveActionButton: true,
actionButtonText: zulipLocalizations.unsubscribeConfirmationDialogConfirmButton);
Expand Down
2 changes: 1 addition & 1 deletion test/widgets/action_sheet_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ void main() {
await tester.pump();

final (unsubscribeButton, cancelButton) = checkSuggestedActionDialog(tester,
expectedTitle: 'Unsubscribe from ${channel.name}?',
expectedTitle: 'Unsubscribe from #${channel.name}?',
expectedMessage: 'Once you leave this channel, you will not be able to rejoin.',
expectDestructiveActionButton: true,
expectedActionButtonText: 'Unsubscribe');
Expand Down