Only deprecating unreadCount, but not deleting it

This commit is contained in:
Leandro Borges Ferreira
2023-01-27 13:31:13 +01:00
parent f94430b202
commit e4b9ec34c0
14 changed files with 18 additions and 15 deletions
@@ -81,7 +81,10 @@ abstract class Translations {
/// The text for showing the unread messages count
/// in the [StreamMessageListView]
String unreadMessagesSeparatorText();
String unreadMessagesSeparatorText(
@Deprecated('unreadCount is not used anymore and will be removed ')
int unreadCount,
);
/// The label for "connected" in [StreamConnectionStatusBuilder]
String get connectedLabel;
@@ -797,7 +800,7 @@ Attachment limit exceeded: it's not possible to add more than $limit attachments
String get linkDisabledError => 'Links are disabled';
@override
String unreadMessagesSeparatorText() => 'New messages';
String unreadMessagesSeparatorText(int unreadCount) => 'New messages';
@override
String get enableFileAccessMessage => 'Please enable access to files'
@@ -24,7 +24,7 @@ class UnreadMessagesSeparator extends StatelessWidget {
child: Padding(
padding: const EdgeInsets.all(8),
child: Text(
context.translations.unreadMessagesSeparatorText(),
context.translations.unreadMessagesSeparatorText(unreadCount),
textAlign: TextAlign.center,
style: StreamChannelHeaderTheme.of(context).subtitleStyle,
),
@@ -459,7 +459,7 @@ class NnStreamChatLocalizations extends GlobalStreamChatLocalizations {
String get viewLibrary => 'View library';
@override
String unreadMessagesSeparatorText() => 'New messages';
String unreadMessagesSeparatorText(int unreadCount) => 'New messages';
@override
String get enableFileAccessMessage => 'Enable file access to continue';
@@ -438,7 +438,7 @@ class StreamChatLocalizationsCa extends GlobalStreamChatLocalizations {
String get linkDisabledError => 'Els enllaços estan deshabilitats';
@override
String unreadMessagesSeparatorText() => 'Missatges nous';
String unreadMessagesSeparatorText(int unreadCount) => 'Missatges nous';
@override
String get enableFileAccessMessage => "Habilita l'accés als fitxers"
@@ -431,7 +431,7 @@ class StreamChatLocalizationsDe extends GlobalStreamChatLocalizations {
String get viewLibrary => 'Bibliothek öffnen';
@override
String unreadMessagesSeparatorText() => 'Neue Nachrichten';
String unreadMessagesSeparatorText(int unreadCount) => 'Neue Nachrichten';
@override
String get enableFileAccessMessage =>
@@ -435,7 +435,7 @@ class StreamChatLocalizationsEn extends GlobalStreamChatLocalizations {
String get viewLibrary => 'View library';
@override
String unreadMessagesSeparatorText() => 'New messages';
String unreadMessagesSeparatorText(int unreadCount) => 'New messages';
@override
String get enableFileAccessMessage => 'Please enable access to files'
@@ -440,7 +440,7 @@ No es posible añadir más de $limit archivos adjuntos
String get linkDisabledError => 'Los enlaces están deshabilitados';
@override
String unreadMessagesSeparatorText() => 'Nuevos mensajes';
String unreadMessagesSeparatorText(int unreadCount) => 'Nuevos mensajes';
@override
String get enableFileAccessMessage => 'Habilite el acceso a los archivos'
@@ -439,7 +439,7 @@ Limite de pièces jointes dépassée : il n'est pas possible d'ajouter plus de $
String get linkDisabledError => 'Les liens sont désactivés';
@override
String unreadMessagesSeparatorText() => "Nouveaux messages";
String unreadMessagesSeparatorText(int unreadCount) => "Nouveaux messages";
@override
String get enableFileAccessMessage =>
@@ -433,7 +433,7 @@ class StreamChatLocalizationsHi extends GlobalStreamChatLocalizations {
String get linkDisabledError => 'लिंक भेजना प्रतिबंधित';
@override
String unreadMessagesSeparatorText() => 'नए संदेश।';
String unreadMessagesSeparatorText(int unreadCount) => 'नए संदेश।';
@override
String get enableFileAccessMessage => 'कृपया फ़ाइलों तक पहुंच सक्षम करें ताकि'
@@ -442,7 +442,7 @@ Attenzione: il limite massimo di $limit file è stato superato.
String get linkDisabledError => 'I links sono disattivati';
@override
String unreadMessagesSeparatorText() => "Nouveaux messages";
String unreadMessagesSeparatorText(int unreadCount) => "Nouveaux messages";
@override
String get enableFileAccessMessage => "Per favore attiva l'accesso ai file"
@@ -418,7 +418,7 @@ class StreamChatLocalizationsJa extends GlobalStreamChatLocalizations {
String get linkDisabledError => 'リンクが無効になっています';
@override
String unreadMessagesSeparatorText() => '新しいメッセージ。';
String unreadMessagesSeparatorText(int unreadCount) => '新しいメッセージ。';
@override
String get enableFileAccessMessage =>
@@ -419,7 +419,7 @@ class StreamChatLocalizationsKo extends GlobalStreamChatLocalizations {
String get linkDisabledError => '링크가 비활성화되었습니다.';
@override
String unreadMessagesSeparatorText() => '새 메시지.';
String unreadMessagesSeparatorText(int unreadCount) => '새 메시지.';
@override
String get enableFileAccessMessage => '친구와 공유할 수 있도록 파일에 대한 액세스를 허용하세요.';
@@ -383,7 +383,7 @@ class StreamChatLocalizationsNo extends GlobalStreamChatLocalizations {
String get viewLibrary => 'Se bibliotek';
@override
String unreadMessagesSeparatorText() => 'Nye meldinger.';
String unreadMessagesSeparatorText(int unreadCount) => 'Nye meldinger.';
@override
String get couldNotReadBytesFromFileError =>
@@ -438,7 +438,7 @@ Não é possível adicionar mais de $limit arquivos de uma vez
String get viewLibrary => 'Ver biblioteca';
@override
String unreadMessagesSeparatorText() => "Novas mensagens";
String unreadMessagesSeparatorText(int unreadCount) => "Novas mensagens";
@override
String get enableFileAccessMessage =>