Skip to content

Commit

Permalink
fixup! tf-1946 fix duplicate import and change MarkReadAction
Browse files Browse the repository at this point in the history
  • Loading branch information
hieutbui committed Aug 28, 2023
1 parent 2aeb3b3 commit bb7d9dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,8 @@ class MailboxDashBoardController extends ReloadableController {

if (readActions != null && currentContext != null && currentOverlayContext != null && markReadAction == MarkReadAction.swipeOnThread) {
final message = readActions == ReadActions.markAsUnread
? AppLocalizations.of(currentContext!).marked_single_message_toast(AppLocalizations.of(currentContext!).unread)
: AppLocalizations.of(currentContext!).marked_single_message_toast(AppLocalizations.of(currentContext!).read);
? AppLocalizations.of(currentContext!).markedSingleMessageToast(AppLocalizations.of(currentContext!).unread.toLowerCase())
: AppLocalizations.of(currentContext!).markedSingleMessageToast(AppLocalizations.of(currentContext!).read.toLowerCase());

final undoAction = readActions == ReadActions.markAsUnread ? ReadActions.markAsRead : ReadActions.markAsUnread;

Expand Down
6 changes: 3 additions & 3 deletions lib/l10n/intl_messages.arb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@@last_modified": "2023-08-25T20:45:24.101518",
"@@last_modified": "2023-08-28T17:04:30.893394",
"initializing_data": "Initializing data...",
"@initializing_data": {
"type": "text",
Expand Down Expand Up @@ -3180,8 +3180,8 @@
"placeholders_order": [],
"placeholders": {}
},
"marked_single_message_toast": "Message has been marked as \"{action}\"",
"@marked_single_message_toast": {
"markedSingleMessageToast": "Message has been marked as {action}",
"@markedSingleMessageToast": {
"type": "text",
"placeholders_order": [
"action"
Expand Down
6 changes: 3 additions & 3 deletions lib/main/localizations/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3281,10 +3281,10 @@ class AppLocalizations {
);
}

String marked_single_message_toast(String action) {
String markedSingleMessageToast(String action) {
return Intl.message(
'Message has been marked as "$action"',
name: 'marked_single_message_toast',
'Message has been marked as $action',
name: 'markedSingleMessageToast',
args: [action]
);
}
Expand Down

0 comments on commit bb7d9dc

Please sign in to comment.