From 85f5b69d6e51a33213971b60aae13f73d4655efc Mon Sep 17 00:00:00 2001 From: fbievan <9338258-fbievan@users.noreply.gitlab.com> Date: Tue, 16 May 2023 16:50:20 +0000 Subject: [PATCH] feat: Add toggle to mute notifications from chat groups --- assets/l10n/intl_en.arb | 10 ++++++++++ .../settings_notifications/settings_notifications.dart | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index da7d85b6..d1239cdb 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -711,6 +711,16 @@ "type": "text", "placeholders": {} }, +"allRooms": "All Group Chats", + "@allRooms": { + "type": "text", + "placeholders": {} + }, + "discover": "Discover", + "@discover": { + "type": "text", + "placeholders": {} + }, "displaynameHasBeenChanged": "Displayname has been changed", "@displaynameHasBeenChanged": { "type": "text", diff --git a/lib/pages/settings_notifications/settings_notifications.dart b/lib/pages/settings_notifications/settings_notifications.dart index 5f2d5ff5..eb787be5 100644 --- a/lib/pages/settings_notifications/settings_notifications.dart +++ b/lib/pages/settings_notifications/settings_notifications.dart @@ -15,6 +15,12 @@ class NotificationSettingsItem { final String Function(BuildContext) title; const NotificationSettingsItem(this.type, this.key, this.title); static List items = [ + NotificationSettingsItem( + PushRuleKind.underride, + '.m.rule.message', + (c) => L10n.of(c)!.allRooms, + ), + NotificationSettingsItem( PushRuleKind.underride, '.m.rule.room_one_to_one',