Fix review findings in channel notification modes
- Detect mentions on the original text, as @[name] or a whole-word @name - Save and restore the full mode map in review mode - Open the mode picker from the chat bell and show the mode in its tooltip - Share one mode picker sheet; fix the stale sheet context - Persist modes by name and skip unknown entries - Keep writing muted_channels so older builds keep the user's mutes - Remove the muteChannel/unmuteChannel/isChannelMuted shims - Update notifications docs to match the behaviour
This commit is contained in:
1 parent
705bff2f15
commit
f667320608
32 files changed
+502
-196
No files matched your search
@@ -719,6 +719,14 @@
|
||||
"channels_notifyAll": "All messages",
|
||||
"channels_notifyMentionsOnly": "Mentions only",
|
||||
"channels_notifyNone": "Muted",
|
||||
"channels_notificationModeTooltip": "Notifications: {mode}",
|
||||
"@channels_notificationModeTooltip": {
|
||||
"placeholders": {
|
||||
"mode": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"channels_muteChannel": "Mute channel",
|
||||
"channels_unmuteChannel": "Unmute channel",
|
||||
"channels_deleteChannel": "Delete channel",
|
||||
|
||||
@@ -2644,6 +2644,12 @@ abstract class AppLocalizations {
|
||||
/// **'Muted'**
|
||||
String get channels_notifyNone;
|
||||
|
||||
/// No description provided for @channels_notificationModeTooltip.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Notifications: {mode}'**
|
||||
String channels_notificationModeTooltip(String mode);
|
||||
|
||||
/// No description provided for @channels_muteChannel.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
||||
@@ -1476,6 +1476,11 @@ class AppLocalizationsBg extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Заглушено';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Заглуши канала';
|
||||
|
||||
|
||||
@@ -1470,6 +1470,11 @@ class AppLocalizationsDe extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Stummgeschaltet';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Kanal stummschalten';
|
||||
|
||||
|
||||
@@ -1450,6 +1450,11 @@ class AppLocalizationsEn extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Muted';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Mute channel';
|
||||
|
||||
|
||||
@@ -1469,6 +1469,11 @@ class AppLocalizationsEs extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Silenciado';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Silenciar canal';
|
||||
|
||||
|
||||
@@ -1474,6 +1474,11 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Désactivé';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Désactiver les notifications du canal';
|
||||
|
||||
|
||||
@@ -1465,6 +1465,11 @@ class AppLocalizationsHu extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Némít';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Csatorna némítása';
|
||||
|
||||
|
||||
@@ -1473,6 +1473,11 @@ class AppLocalizationsIt extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Silenziato';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Silenzia canale';
|
||||
|
||||
|
||||
@@ -1397,6 +1397,11 @@ class AppLocalizationsJa extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'ミュート';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'チャンネルをミュート';
|
||||
|
||||
|
||||
@@ -1402,6 +1402,11 @@ class AppLocalizationsKo extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => '음소거';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => '음소거 채널';
|
||||
|
||||
|
||||
@@ -1461,6 +1461,11 @@ class AppLocalizationsNl extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Gedempt';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Kanaal dempen';
|
||||
|
||||
|
||||
@@ -1487,6 +1487,11 @@ class AppLocalizationsPl extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Wyciszone';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Wycisz kanał';
|
||||
|
||||
|
||||
@@ -1472,6 +1472,11 @@ class AppLocalizationsPt extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Silenciado';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Silenciar canal';
|
||||
|
||||
|
||||
@@ -1476,6 +1476,11 @@ class AppLocalizationsRu extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Без звука';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Отключить уведомления канала';
|
||||
|
||||
|
||||
@@ -1464,6 +1464,11 @@ class AppLocalizationsSk extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Stíšené';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Stlmiť kanál';
|
||||
|
||||
|
||||
@@ -1462,6 +1462,11 @@ class AppLocalizationsSl extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Utišano';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Utišaj kanal';
|
||||
|
||||
|
||||
@@ -1451,6 +1451,11 @@ class AppLocalizationsSv extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Tyst';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Tysta kanal';
|
||||
|
||||
|
||||
@@ -1467,6 +1467,11 @@ class AppLocalizationsUk extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => 'Вимкнено';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => 'Вимкнути сповіщення каналу';
|
||||
|
||||
|
||||
@@ -1379,6 +1379,11 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get channels_notifyNone => '静音';
|
||||
|
||||
@override
|
||||
String channels_notificationModeTooltip(String mode) {
|
||||
return 'Notifications: $mode';
|
||||
}
|
||||
|
||||
@override
|
||||
String get channels_muteChannel => '静音频道';
|
||||
|
||||
|
||||
Reference in new issue
Block a user