From 9bd8b6aa441a4b2ecb0eeda2718100e9345d2f67 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 14 Feb 2022 15:46:49 +0100 Subject: [PATCH] fix: Notifications for reactions --- assets/l10n/intl_en.arb | 10 +++++++++- .../matrix_sdk_extensions.dart/matrix_locals.dart | 4 ++++ pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index c83a91e8..a3c076ca 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -2714,5 +2714,13 @@ "markAsRead": "Mark as read", "matrixWidgets": "Matrix Widgets", "integrationsNotImplemented": "Editing widgets and integrations is not possible yet.", - "editIntegrations": "Edit widgets and integrations" + "editIntegrations": "Edit widgets and integrations", + "reactedWith": "{sender} reacted with {reaction}", + "@reactedWith": { + "type": "text", + "placeholders": { + "sender": {}, + "reaction": {} + } + } } diff --git a/lib/utils/matrix_sdk_extensions.dart/matrix_locals.dart b/lib/utils/matrix_sdk_extensions.dart/matrix_locals.dart index a755f124..016f4bf5 100644 --- a/lib/utils/matrix_sdk_extensions.dart/matrix_locals.dart +++ b/lib/utils/matrix_sdk_extensions.dart/matrix_locals.dart @@ -261,4 +261,8 @@ class MatrixLocals extends MatrixLocalizations { @override String get you => l10n.you; + + @override + String sentReaction(String senderName, String reactionKey) => + l10n.reactedWith(senderName, reactionKey); } diff --git a/pubspec.lock b/pubspec.lock index 72587639..97b916fa 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -832,7 +832,7 @@ packages: name: matrix url: "https://pub.dartlang.org" source: hosted - version: "0.8.6" + version: "0.8.7" matrix_api_lite: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 33e4669d..9ed0761f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -51,7 +51,7 @@ dependencies: intl: any localstorage: ^4.0.0+1 lottie: ^1.2.1 - matrix: ^0.8.6 + matrix: ^0.8.7 matrix_link_text: ^1.0.2 open_noti_settings: ^0.4.0 package_info_plus: ^1.2.1