feat: add per-channel notification modes (all/mentions only/muted)

- Add ChannelNotificationMode enum with all, mentionsOnly, muted options
- Replace mutedChannels Set with channelNotificationModes Map for per-channel settings
- Add mention detection for @username in channel messages
- Update channels list and chat UI with notification mode selector
- Add localization strings for new notification modes
- Automatic migration from old mutedChannels to new system
- Update user documentation
- Preserve backward compatibility with existing mute/unmute API
This commit is contained in:
edouard committed 2026-10-23 22:37:49 +02:00
1 parent caee4d5c19
commit caad3dd703
29 files changed
+647 -66

No files matched your search

+4
View File
@@ -715,6 +715,10 @@
"channels_addSectionCreate": "Create new",
"channels_dragToReorder": "Drag to reorder",
"channels_editChannel": "Edit channel",
"channels_notificationSettings": "Notification settings",
"channels_notifyAll": "All messages",
"channels_notifyMentionsOnly": "Mentions only (@)",
"channels_notifyNone": "Muted",
"channels_muteChannel": "Mute channel",
"channels_unmuteChannel": "Unmute channel",
"channels_deleteChannel": "Delete channel",
+4
View File
@@ -369,6 +369,10 @@
"channels_public": "Public",
"channels_private": "Privé",
"channels_editChannel": "Modifier le canal",
"channels_notificationSettings": "Paramètres des notifications",
"channels_notifyAll": "Tous les messages",
"channels_notifyMentionsOnly": "Mentions uniquement (@)",
"channels_notifyNone": "Désactivé",
"channels_muteChannel": "Désactiver les notifications du canal",
"channels_unmuteChannel": "Réactiver les notifications du canal",
"channels_deleteChannel": "Supprimer le canal",
+24
View File
@@ -2620,6 +2620,30 @@ abstract class AppLocalizations {
/// **'Edit channel'**
String get channels_editChannel;
/// No description provided for @channels_notificationSettings.
///
/// In en, this message translates to:
/// **'Notification settings'**
String get channels_notificationSettings;
/// No description provided for @channels_notifyAll.
///
/// In en, this message translates to:
/// **'All messages'**
String get channels_notifyAll;
/// No description provided for @channels_notifyMentionsOnly.
///
/// In en, this message translates to:
/// **'Mentions only (@)'**
String get channels_notifyMentionsOnly;
/// No description provided for @channels_notifyNone.
///
/// In en, this message translates to:
/// **'Muted'**
String get channels_notifyNone;
/// No description provided for @channels_muteChannel.
///
/// In en, this message translates to:
+12
View File
@@ -1464,6 +1464,18 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get channels_editChannel => 'Редактирай канал';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Заглуши канала';
+12
View File
@@ -1458,6 +1458,18 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get channels_editChannel => 'Kanal bearbeiten';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Kanal stummschalten';
+12
View File
@@ -1438,6 +1438,18 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get channels_editChannel => 'Edit channel';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Mute channel';
+12
View File
@@ -1457,6 +1457,18 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get channels_editChannel => 'Editar canal';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Silenciar canal';
+12
View File
@@ -1462,6 +1462,18 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get channels_editChannel => 'Modifier le canal';
@override
String get channels_notificationSettings => 'Paramètres des notifications';
@override
String get channels_notifyAll => 'Tous les messages';
@override
String get channels_notifyMentionsOnly => 'Mentions uniquement (@)';
@override
String get channels_notifyNone => 'Désactivé';
@override
String get channels_muteChannel => 'Désactiver les notifications du canal';
+12
View File
@@ -1453,6 +1453,18 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get channels_editChannel => 'Csatorna szerkesztése';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Csatorna némítása';
+12
View File
@@ -1461,6 +1461,18 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get channels_editChannel => 'Modifica canale';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Silenzia canale';
+12
View File
@@ -1385,6 +1385,18 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get channels_editChannel => 'チャンネルを編集';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'チャンネルをミュート';
+12
View File
@@ -1390,6 +1390,18 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get channels_editChannel => '채널 편집';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => '음소거 채널';
+12
View File
@@ -1449,6 +1449,18 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get channels_editChannel => 'Kanaal bewerken';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Kanaal dempen';
+12
View File
@@ -1475,6 +1475,18 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get channels_editChannel => 'Edytuj kanał';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Wycisz kanał';
+12
View File
@@ -1460,6 +1460,18 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get channels_editChannel => 'Editar canal';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Silenciar canal';
+12
View File
@@ -1464,6 +1464,18 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get channels_editChannel => 'Изменить канал';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Отключить уведомления канала';
+12
View File
@@ -1452,6 +1452,18 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get channels_editChannel => 'Upraviť kanál';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Stlmiť kanál';
+12
View File
@@ -1450,6 +1450,18 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get channels_editChannel => 'Uredi kanal';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Utišaj kanal';
+12
View File
@@ -1439,6 +1439,18 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get channels_editChannel => 'Redigera kanal';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Tysta kanal';
+12
View File
@@ -1455,6 +1455,18 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get channels_editChannel => 'Редагувати канал';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => 'Вимкнути сповіщення каналу';
+12
View File
@@ -1367,6 +1367,18 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get channels_editChannel => '编辑频道';
@override
String get channels_notificationSettings => 'Notification settings';
@override
String get channels_notifyAll => 'All messages';
@override
String get channels_notifyMentionsOnly => 'Mentions only (@)';
@override
String get channels_notifyNone => 'Muted';
@override
String get channels_muteChannel => '静音频道';