stream-chat-react-native-core 5.23.2 → 5.24.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +13 -7
  2. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  3. package/lib/commonjs/components/Message/Message.js +10 -7
  4. package/lib/commonjs/components/Message/Message.js.map +1 -1
  5. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +9 -9
  6. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  7. package/lib/commonjs/i18n/en.json +1 -1
  8. package/lib/commonjs/i18n/fr.json +52 -52
  9. package/lib/commonjs/i18n/hi.json +52 -52
  10. package/lib/commonjs/i18n/it.json +52 -52
  11. package/lib/commonjs/i18n/nl.json +52 -52
  12. package/lib/commonjs/i18n/ru.json +52 -52
  13. package/lib/commonjs/i18n/tr.json +52 -52
  14. package/lib/commonjs/store/apis/getChannelMessages.js +8 -5
  15. package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
  16. package/lib/commonjs/utils/utils.js +6 -1
  17. package/lib/commonjs/utils/utils.js.map +1 -1
  18. package/lib/commonjs/version.json +1 -1
  19. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +13 -7
  20. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  21. package/lib/module/components/Message/Message.js +10 -7
  22. package/lib/module/components/Message/Message.js.map +1 -1
  23. package/lib/module/components/Message/MessageSimple/MessageStatus.js +9 -9
  24. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  25. package/lib/module/i18n/en.json +1 -1
  26. package/lib/module/i18n/fr.json +52 -52
  27. package/lib/module/i18n/hi.json +52 -52
  28. package/lib/module/i18n/it.json +52 -52
  29. package/lib/module/i18n/nl.json +52 -52
  30. package/lib/module/i18n/ru.json +52 -52
  31. package/lib/module/i18n/tr.json +52 -52
  32. package/lib/module/store/apis/getChannelMessages.js +8 -5
  33. package/lib/module/store/apis/getChannelMessages.js.map +1 -1
  34. package/lib/module/utils/utils.js +6 -1
  35. package/lib/module/utils/utils.js.map +1 -1
  36. package/lib/module/version.json +1 -1
  37. package/lib/typescript/i18n/en.json +1 -1
  38. package/lib/typescript/i18n/fr.json +52 -52
  39. package/lib/typescript/i18n/hi.json +52 -52
  40. package/lib/typescript/i18n/it.json +52 -52
  41. package/lib/typescript/i18n/nl.json +52 -52
  42. package/lib/typescript/i18n/ru.json +52 -52
  43. package/lib/typescript/i18n/tr.json +52 -52
  44. package/lib/typescript/utils/utils.d.ts +3 -0
  45. package/package.json +1 -1
  46. package/src/components/AttachmentPicker/AttachmentPicker.tsx +9 -3
  47. package/src/components/Message/Message.tsx +5 -2
  48. package/src/components/Message/MessageSimple/MessageStatus.tsx +7 -5
  49. package/src/i18n/en.json +1 -1
  50. package/src/i18n/fr.json +52 -52
  51. package/src/i18n/hi.json +52 -52
  52. package/src/i18n/it.json +52 -52
  53. package/src/i18n/nl.json +52 -52
  54. package/src/i18n/ru.json +52 -52
  55. package/src/i18n/tr.json +52 -52
  56. package/src/store/apis/getChannelMessages.ts +10 -7
  57. package/src/utils/utils.ts +12 -0
  58. package/src/version.json +1 -1
package/src/i18n/it.json CHANGED
@@ -1,76 +1,76 @@
1
1
  {
2
2
  "1 Reply": "1 Risposta",
3
- "1 Thread Reply": "1 Risposta alla Discussione",
3
+ "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "Consenti l'accesso alla tua galleria",
5
5
  "Allow camera access in device settings": "Consenti l'accesso alla fotocamera nelle impostazioni del dispositivo",
6
6
  "Also send to channel": "Invia anche al canale",
7
- "Are you sure you want to permanently delete this message?": "Sei sicuro di voler eliminare definitivamente questo messaggio?",
8
- "Block User": "Blocca Utente",
9
- "Cancel": "Annulla",
10
- "Cannot Flag Message": "Impossibile Segnalare Messaggio",
11
- "Copy Message": "Copia Messaggio",
12
- "Delete": "Elimina",
13
- "Delete Message": "Cancella il Messaggio",
7
+ "Are you sure you want to permanently delete this message?": "",
8
+ "Block User": "",
9
+ "Cancel": "",
10
+ "Cannot Flag Message": "",
11
+ "Copy Message": "",
12
+ "Delete": "",
13
+ "Delete Message": "",
14
14
  "Device camera is used to take photos or videos.": "La fotocamera del dispositivo viene utilizzata per scattare foto o video.",
15
- "Do you want to send a copy of this message to a moderator for further investigation?": "Vuoi inviare una copia di questo messaggio a un moderatore per ulteriori indagini?",
16
- "Edit Message": "Modifica Messaggio",
15
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
+ "Edit Message": "",
17
17
  "Editing Message": "Modificando il Messaggio",
18
- "Emoji matching": "Abbinamento emoji",
19
- "Empty message...": "Message vuoto...",
20
- "Error loading": "Errore di caricamento",
21
- "Error loading channel list...": "Errore durante il caricamento della lista dei canali...",
22
- "Error loading messages for this channel...": "Errore durante il caricamento dei messaggi per questo canale...",
23
- "Error while loading, please reload/refresh": "Errore durante il caricamento, per favore ricarica la pagina",
18
+ "Emoji matching": "",
19
+ "Empty message...": "",
20
+ "Error loading": "",
21
+ "Error loading channel list...": "",
22
+ "Error loading messages for this channel...": "",
23
+ "Error while loading, please reload/refresh": "",
24
24
  "File type not supported": "Tipo di file non supportato",
25
- "Flag": "Contrassegna",
26
- "Flag Message": "Contrassegna Messaggio",
27
- "Flag action failed either due to a network issue or the message is already flagged": "L'azione di segnalazione non è riuscita a causa di un problema di rete o il messaggio è già segnalato.",
28
- "How about sending your first message to a friend?": "Che ne dici di inviare il tuo primo messaggio ad un amico?",
29
- "Instant Commands": "Comandi Istantanei",
30
- "Let's start chatting!": "Iniziamo a chattare!",
31
- "Links are disabled": "I link sono disabilitati",
32
- "Loading channels...": "Caricamento canali in corso...",
33
- "Loading messages...": "Caricamento messaggi...",
34
- "Loading...": "Caricamento...",
35
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "È stato raggiunto il limite massimo di caricamento delle dimensioni del file. Carica un file inferiore a {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
25
+ "Flag": "",
26
+ "Flag Message": "",
27
+ "Flag action failed either due to a network issue or the message is already flagged": "",
28
+ "How about sending your first message to a friend?": "",
29
+ "Instant Commands": "",
30
+ "Let's start chatting!": "",
31
+ "Links are disabled": "",
32
+ "Loading channels...": "",
33
+ "Loading messages...": "",
34
+ "Loading...": "",
35
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
36
  "Message Reactions": "Reazioni ai Messaggi",
37
- "Message deleted": "Messaggio cancellato",
38
- "Message flagged": "Messaggio contrassegnato",
39
- "Mute User": "Utente Muto",
40
- "Not supported": "non supportato",
41
- "Nothing yet...": "Ancora niente...",
42
- "Ok": "Ok",
43
- "Only visible to you": "Visibile solo a te",
37
+ "Message deleted": "",
38
+ "Message flagged": "",
39
+ "Mute User": "",
40
+ "Not supported": "",
41
+ "Nothing yet...": "",
42
+ "Ok": "",
43
+ "Only visible to you": "",
44
44
  "Open Settings": "Apri Impostazioni",
45
45
  "Photo": "Foto",
46
46
  "Photos and Videos": "Foto e Video",
47
- "Pin to Conversation": "Metti in evidenza",
48
- "Pinned by": "Fissato da",
47
+ "Pin to Conversation": "",
48
+ "Pinned by": "",
49
49
  "Please enable access to your photos and videos so you can share them.": "Abilita l'accesso alle tue foto e ai tuoi video in modo da poterli condividere.",
50
- "Please select a channel first": "Seleziona un canale",
51
- "Reconnecting...": "Ricollegarsi...",
52
- "Reply": "Rispondi",
50
+ "Please select a channel first": "",
51
+ "Reconnecting...": "",
52
+ "Reply": "",
53
53
  "Reply to Message": "Rispondi al messaggio",
54
- "Resend": "Invia di nuovo",
54
+ "Resend": "",
55
55
  "Search GIFs": "Cerca GIF",
56
56
  "Select More Photos": "Seleziona Altre foto",
57
57
  "Send a message": "Mandare un messaggio",
58
- "Sending links is not allowed in this conversation": "L'invio di link non è consentito in questa conversazione",
58
+ "Sending links is not allowed in this conversation": "",
59
59
  "Slow mode ON": "Slowmode attiva",
60
- "The message has been reported to a moderator.": "Il messaggio è stato segnalato a un moderatore.",
61
- "Thread Reply": "Rispondi alla Discussione",
62
- "Unblock User": "Sblocca utente",
60
+ "The message has been reported to a moderator.": "",
61
+ "Thread Reply": "",
62
+ "Unblock User": "",
63
63
  "Unknown User": "Utente sconosciuto",
64
- "Unmute User": "Riattiva utente",
65
- "Unpin from Conversation": "Rimuovi dagli elementi in evidenza",
64
+ "Unmute User": "",
65
+ "Unpin from Conversation": "",
66
66
  "Unread Messages": "Messaggi non letti",
67
67
  "Video": "Video",
68
- "You": "Tu",
69
- "You can't send messages in this channel": "Non puoi inviare messaggi in questo canale",
70
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e altri {{ nonSelfUserLength }} stanno scrivendo",
68
+ "You": "",
69
+ "You can't send messages in this channel": "",
70
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
71
  "{{ index }} of {{ photoLength }}": "{{ index }} di {{ photoLength }}",
72
72
  "{{ replyCount }} Replies": "{{ replyCount }} Risposte",
73
- "{{ replyCount }} Thread Replies": "{{replyCount}} Risposte alle Conversazione",
74
- "{{ user }} is typing": "{{ user }} sta scrivendo",
75
- "🏙 Attachment...": "🏙 Allegato..."
73
+ "{{ replyCount }} Thread Replies": "",
74
+ "{{ user }} is typing": "",
75
+ "🏙 Attachment...": ""
76
76
  }
package/src/i18n/nl.json CHANGED
@@ -1,76 +1,76 @@
1
1
  {
2
2
  "1 Reply": "1 Antwoord",
3
- "1 Thread Reply": "1 thread antwoord",
3
+ "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "Geef toegang tot uw galerij",
5
5
  "Allow camera access in device settings": "Sta cameratoegang toe in de apparaatinstellingen",
6
6
  "Also send to channel": "Stuur ook naar kanaal",
7
- "Are you sure you want to permanently delete this message?": "Weet u zeker dat u dit bericht definitief wilt verwijderen?",
8
- "Block User": "Blokkeer Gebruiker",
9
- "Cancel": "Annuleer",
10
- "Cannot Flag Message": "Kan bericht niet rapporteren",
11
- "Copy Message": "Bericht kopiëren",
12
- "Delete": "Verwijderen",
13
- "Delete Message": "Verwijder bericht",
7
+ "Are you sure you want to permanently delete this message?": "",
8
+ "Block User": "",
9
+ "Cancel": "",
10
+ "Cannot Flag Message": "",
11
+ "Copy Message": "",
12
+ "Delete": "",
13
+ "Delete Message": "",
14
14
  "Device camera is used to take photos or videos.": "De camera van het apparaat wordt gebruikt om foto's of video's te maken.",
15
- "Do you want to send a copy of this message to a moderator for further investigation?": "Wil je een kopie van dit bericht naar een moderator sturen voor verder onderzoek?",
16
- "Edit Message": "Pas bericht aan",
15
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
+ "Edit Message": "",
17
17
  "Editing Message": "Bericht aanpassen",
18
- "Emoji matching": "Emoji-overeenkomsten",
19
- "Empty message...": "Leeg bericht...",
20
- "Error loading": "Probleem bij het laden",
21
- "Error loading channel list...": "Probleem bij het laden van de kanalen...",
22
- "Error loading messages for this channel...": "Probleem bij het laden van de berichten in dit kanaal...",
23
- "Error while loading, please reload/refresh": "Probleem bij het laden, probeer opnieuw",
18
+ "Emoji matching": "",
19
+ "Empty message...": "",
20
+ "Error loading": "",
21
+ "Error loading channel list...": "",
22
+ "Error loading messages for this channel...": "",
23
+ "Error while loading, please reload/refresh": "",
24
24
  "File type not supported": "Bestandstype niet ondersteund",
25
- "Flag": "Markeer",
26
- "Flag Message": "Markeer bericht",
27
- "Flag action failed either due to a network issue or the message is already flagged": "Rapporteren mislukt door een netwerk fout of het berich is al gerapporteerd",
28
- "How about sending your first message to a friend?": "Wat dacht je ervan om je eerste bericht naar een vriend te sturen?",
29
- "Instant Commands": "Directe Opdrachten",
30
- "Let's start chatting!": "Laten we beginnen met chatten!",
31
- "Links are disabled": "Het versturen van links staat uit",
32
- "Loading channels...": "Kanalen aan het laden...",
33
- "Loading messages...": "Berichten aan het laden...",
34
- "Loading...": "Aan het laden...",
35
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maximale uploadlimiet voor bestandsgrootte bereikt. Upload een bestand van minder dan {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
25
+ "Flag": "",
26
+ "Flag Message": "",
27
+ "Flag action failed either due to a network issue or the message is already flagged": "",
28
+ "How about sending your first message to a friend?": "",
29
+ "Instant Commands": "",
30
+ "Let's start chatting!": "",
31
+ "Links are disabled": "",
32
+ "Loading channels...": "",
33
+ "Loading messages...": "",
34
+ "Loading...": "",
35
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
36
  "Message Reactions": "Bericht Reacties",
37
- "Message deleted": "Bericht verwijderd",
38
- "Message flagged": "Bericht gemarkeerd",
39
- "Mute User": "Gebruiker dempen",
40
- "Not supported": "niet ondersteund",
41
- "Nothing yet...": "Nog niets...",
42
- "Ok": "Oké",
43
- "Only visible to you": "Alleen zichtbaar voor jou",
37
+ "Message deleted": "",
38
+ "Message flagged": "",
39
+ "Mute User": "",
40
+ "Not supported": "",
41
+ "Nothing yet...": "",
42
+ "Ok": "",
43
+ "Only visible to you": "",
44
44
  "Open Settings": "Open instellingen",
45
45
  "Photo": "Foto",
46
46
  "Photos and Videos": "Foto's en video's",
47
- "Pin to Conversation": "Vastmaken aan gesprek",
48
- "Pinned by": "Vastgemaakt door",
47
+ "Pin to Conversation": "",
48
+ "Pinned by": "",
49
49
  "Please enable access to your photos and videos so you can share them.": "Schakel toegang tot uw foto's en video's in zodat u ze kunt delen.",
50
- "Please select a channel first": "Selecteer eerst een kanaal",
51
- "Reconnecting...": "Opnieuw Verbinding Maken...",
52
- "Reply": "Antwoord",
50
+ "Please select a channel first": "",
51
+ "Reconnecting...": "",
52
+ "Reply": "",
53
53
  "Reply to Message": "Beantwoord bericht",
54
- "Resend": "Opnieuw versturen",
54
+ "Resend": "",
55
55
  "Search GIFs": "Zoek GIF's",
56
56
  "Select More Photos": "Selecteer Meer foto's",
57
57
  "Send a message": "Stuur een bericht",
58
- "Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
58
+ "Sending links is not allowed in this conversation": "",
59
59
  "Slow mode ON": "Langzame modus aan",
60
- "The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
61
- "Thread Reply": "Discussie beantwoorden",
62
- "Unblock User": "Deblokkeer gebruiker",
60
+ "The message has been reported to a moderator.": "",
61
+ "Thread Reply": "",
62
+ "Unblock User": "",
63
63
  "Unknown User": "Onbekende gebruiker",
64
- "Unmute User": "Dempen van gebruiker opheffen",
65
- "Unpin from Conversation": "Losmaken van gesprek",
64
+ "Unmute User": "",
65
+ "Unpin from Conversation": "",
66
66
  "Unread Messages": "Ongelezen Berichten",
67
67
  "Video": "Video",
68
- "You": "U",
69
- "You can't send messages in this channel": "Je kan geen berichten sturen in dit kanaal",
70
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
68
+ "You": "",
69
+ "You can't send messages in this channel": "",
70
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
71
  "{{ index }} of {{ photoLength }}": "{{ index }} van {{ photoLength }}",
72
72
  "{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
73
- "{{ replyCount }} Thread Replies": "{{replyCount}} Discussiereacties",
74
- "{{ user }} is typing": "{{ user }} is aan het typen",
75
- "🏙 Attachment...": "🏙 Bijlage..."
73
+ "{{ replyCount }} Thread Replies": "",
74
+ "{{ user }} is typing": "",
75
+ "🏙 Attachment...": ""
76
76
  }
package/src/i18n/ru.json CHANGED
@@ -1,76 +1,76 @@
1
1
  {
2
2
  "1 Reply": "1 Ответ",
3
- "1 Thread Reply": "1 тема Ответить",
3
+ "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "Разрешить доступ к вашей галерее",
5
5
  "Allow camera access in device settings": "Разрешите доступ к камере в настройках устройства.",
6
6
  "Also send to channel": "Также отправить на канал",
7
- "Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
8
- "Block User": "Заблокировать пользователя",
9
- "Cancel": "Отмена",
10
- "Cannot Flag Message": "Невозможно пожаловаться на сообщение",
11
- "Copy Message": "Копировать сообщение",
12
- "Delete": "удалять",
13
- "Delete Message": "Удалить сообщение",
7
+ "Are you sure you want to permanently delete this message?": "",
8
+ "Block User": "",
9
+ "Cancel": "",
10
+ "Cannot Flag Message": "",
11
+ "Copy Message": "",
12
+ "Delete": "",
13
+ "Delete Message": "",
14
14
  "Device camera is used to take photos or videos.": "Камера устройства используется для съемки фотографий или видео.",
15
- "Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
16
- "Edit Message": "Редактировать сообщение",
15
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
+ "Edit Message": "",
17
17
  "Editing Message": "Редактирование сообщения",
18
- "Emoji matching": "Соответствие эмодзи",
19
- "Empty message...": "Пустое сообщение...",
20
- "Error loading": "Ошибка при загрузке",
21
- "Error loading channel list...": "Ошибка загрузки списка каналов...",
22
- "Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
23
- "Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
18
+ "Emoji matching": "",
19
+ "Empty message...": "",
20
+ "Error loading": "",
21
+ "Error loading channel list...": "",
22
+ "Error loading messages for this channel...": "",
23
+ "Error while loading, please reload/refresh": "",
24
24
  "File type not supported": "Тип файла не поддерживается",
25
- "Flag": "Пометить",
26
- "Flag Message": "Пометить сообщение",
27
- "Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
28
- "How about sending your first message to a friend?": "Как насчет отправки первого сообщения другу?",
29
- "Instant Commands": "Мгновенные Команды",
30
- "Let's start chatting!": "Давайте начнем общаться!",
31
- "Links are disabled": "Ссылки отключены",
32
- "Loading channels...": "Загружаю каналы...",
33
- "Loading messages...": "Загружаю сообщения...",
34
- "Loading...": "Загружаю...",
35
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Достигнут предел максимального размера файла для загрузки. Загрузите файл размером менее {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} МБ.",
25
+ "Flag": "",
26
+ "Flag Message": "",
27
+ "Flag action failed either due to a network issue or the message is already flagged": "",
28
+ "How about sending your first message to a friend?": "",
29
+ "Instant Commands": "",
30
+ "Let's start chatting!": "",
31
+ "Links are disabled": "",
32
+ "Loading channels...": "",
33
+ "Loading messages...": "",
34
+ "Loading...": "",
35
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
36
  "Message Reactions": "Сообщения Реакции",
37
- "Message deleted": "Сообщение удалено",
38
- "Message flagged": "Сообщение отмечено",
39
- "Mute User": "Отключить пользователя",
40
- "Not supported": "не поддерживается",
41
- "Nothing yet...": "Пока ничего нет...",
42
- "Ok": "",
43
- "Only visible to you": "Видно только вам",
37
+ "Message deleted": "",
38
+ "Message flagged": "",
39
+ "Mute User": "",
40
+ "Not supported": "",
41
+ "Nothing yet...": "",
42
+ "Ok": "",
43
+ "Only visible to you": "",
44
44
  "Open Settings": "Открыть настройки",
45
45
  "Photo": "Фото",
46
46
  "Photos and Videos": "Фото и видео",
47
- "Pin to Conversation": "Закрепить к беседе",
48
- "Pinned by": "Закреплено пользователем",
47
+ "Pin to Conversation": "",
48
+ "Pinned by": "",
49
49
  "Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
50
- "Please select a channel first": "Пожалуйста, сначала выберите канал",
51
- "Reconnecting...": "Переподключение...",
52
- "Reply": "Ответить",
50
+ "Please select a channel first": "",
51
+ "Reconnecting...": "",
52
+ "Reply": "",
53
53
  "Reply to Message": "Ответить на сообщение",
54
- "Resend": "Отправить",
54
+ "Resend": "",
55
55
  "Search GIFs": "Поиск GIF",
56
56
  "Select More Photos": "Выбрать больше фотографий",
57
57
  "Send a message": "Отправить сообщение",
58
- "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
58
+ "Sending links is not allowed in this conversation": "",
59
59
  "Slow mode ON": "Медленный режим включен",
60
- "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
61
- "Thread Reply": "Тема Ответить",
62
- "Unblock User": "Разблокировать пользователя",
60
+ "The message has been reported to a moderator.": "",
61
+ "Thread Reply": "",
62
+ "Unblock User": "",
63
63
  "Unknown User": "Неизвестный пользователь",
64
- "Unmute User": "Включить микрофон",
65
- "Unpin from Conversation": "Открепить от беседы",
64
+ "Unmute User": "",
65
+ "Unpin from Conversation": "",
66
66
  "Unread Messages": "Непрочитанные Сообщения",
67
67
  "Video": "видео",
68
- "You": "Вы",
69
- "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
70
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
68
+ "You": "",
69
+ "You can't send messages in this channel": "",
70
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
71
  "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
72
72
  "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
73
- "{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
74
- "{{ user }} is typing": "{{ user }} пишет",
75
- "🏙 Attachment...": "🏙 Вложение..."
73
+ "{{ replyCount }} Thread Replies": "",
74
+ "{{ user }} is typing": "",
75
+ "🏙 Attachment...": ""
76
76
  }
package/src/i18n/tr.json CHANGED
@@ -1,76 +1,76 @@
1
1
  {
2
2
  "1 Reply": "1 Cevap",
3
- "1 Thread Reply": "1 Konu Yanıtı",
3
+ "1 Thread Reply": "",
4
4
  "Allow access to your Gallery": "Galerinize erişime izin verin",
5
5
  "Allow camera access in device settings": "Cihaz ayarlarında kamera erişimine izin ver",
6
6
  "Also send to channel": "Kanala da gönder",
7
- "Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
8
- "Block User": "Kullanıcıyı engelle",
9
- "Cancel": "İptal",
10
- "Cannot Flag Message": "Raporlama Başarısız",
11
- "Copy Message": "Mesajı Kopyala",
12
- "Delete": "Sil",
13
- "Delete Message": "Mesajı Sil",
7
+ "Are you sure you want to permanently delete this message?": "",
8
+ "Block User": "",
9
+ "Cancel": "",
10
+ "Cannot Flag Message": "",
11
+ "Copy Message": "",
12
+ "Delete": "",
13
+ "Delete Message": "",
14
14
  "Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
15
- "Do you want to send a copy of this message to a moderator for further investigation?": "Detaylı inceleme için bu mesajın kopyasını moderatöre göndermek istiyor musunuz?",
16
- "Edit Message": "Mesajı Düzenle",
15
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
+ "Edit Message": "",
17
17
  "Editing Message": "Mesaj Düzenleniyor",
18
- "Emoji matching": "Emoji eşleştirme",
19
- "Empty message...": "Boş mesaj...",
20
- "Error loading": "Yükleme hatası",
21
- "Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
22
- "Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
23
- "Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
18
+ "Emoji matching": "",
19
+ "Empty message...": "",
20
+ "Error loading": "",
21
+ "Error loading channel list...": "",
22
+ "Error loading messages for this channel...": "",
23
+ "Error while loading, please reload/refresh": "",
24
24
  "File type not supported": "Dosya türü desteklenmiyor",
25
- "Flag": "Raporla",
26
- "Flag Message": "Mesajı Raporla",
27
- "Flag action failed either due to a network issue or the message is already flagged": "Mesajın daha önce raporlanmış olması veya bir ağ bağlantısı sorunu nedeniyle raporlama işlemi başarısız oldu.",
28
- "How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
29
- "Instant Commands": "Anlık Komutlar",
30
- "Let's start chatting!": "Haydi sohbete başlayalım!",
31
- "Links are disabled": "Bağlantılar devre dışı",
32
- "Loading channels...": "Kanallar yükleniyor...",
33
- "Loading messages...": "Mesajlar yükleniyor...",
34
- "Loading...": "Yükleniyor...",
35
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Maksimum dosya boyutu yükleme sınırına ulaşıldı. Lütfen {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB'ın altında bir dosya yükleyin.",
25
+ "Flag": "",
26
+ "Flag Message": "",
27
+ "Flag action failed either due to a network issue or the message is already flagged": "",
28
+ "How about sending your first message to a friend?": "",
29
+ "Instant Commands": "",
30
+ "Let's start chatting!": "",
31
+ "Links are disabled": "",
32
+ "Loading channels...": "",
33
+ "Loading messages...": "",
34
+ "Loading...": "",
35
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
36
  "Message Reactions": "Mesaj Tepkileri",
37
- "Message deleted": "Mesaj silindi",
38
- "Message flagged": "Mesaj işaretlendi",
39
- "Mute User": "Kullanıcıyı sessize al",
40
- "Not supported": "Desteklenmiyor",
41
- "Nothing yet...": "Henüz değil...",
42
- "Ok": "Tamam",
43
- "Only visible to you": "Sadece siz görebilirsiniz",
37
+ "Message deleted": "",
38
+ "Message flagged": "",
39
+ "Mute User": "",
40
+ "Not supported": "",
41
+ "Nothing yet...": "",
42
+ "Ok": "",
43
+ "Only visible to you": "",
44
44
  "Open Settings": "Ayarları aç",
45
45
  "Photo": "Fotoğraf",
46
46
  "Photos and Videos": "Fotoğraflar ve Videolar",
47
- "Pin to Conversation": "Konuşmaya sabitle",
48
- "Pinned by": "Tarafından sabitlendi",
47
+ "Pin to Conversation": "",
48
+ "Pinned by": "",
49
49
  "Please enable access to your photos and videos so you can share them.": "Paylaşım yapabilmek için lutfen fotoğraflarınıza ve videolarınıza erişimi etkinleştirin.",
50
- "Please select a channel first": "Lütfen önce bir kanal seçiniz",
51
- "Reconnecting...": "Yeniden Bağlanılıyor...",
52
- "Reply": "Yanıtla",
50
+ "Please select a channel first": "",
51
+ "Reconnecting...": "",
52
+ "Reply": "",
53
53
  "Reply to Message": "Mesajı Yanıtla",
54
- "Resend": "Yeniden gönder",
54
+ "Resend": "",
55
55
  "Search GIFs": "GIF Ara",
56
56
  "Select More Photos": "Daha Fazla Fotoğraf Seçin",
57
57
  "Send a message": "Mesaj gönder",
58
- "Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
58
+ "Sending links is not allowed in this conversation": "",
59
59
  "Slow mode ON": "Yavaş Mod Açık",
60
- "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
61
- "Thread Reply": "Konu Yanıtı",
62
- "Unblock User": "Kullanıcının engelini kaldır",
60
+ "The message has been reported to a moderator.": "",
61
+ "Thread Reply": "",
62
+ "Unblock User": "",
63
63
  "Unknown User": "Bilinmeyen kullanıcı",
64
- "Unmute User": "Kullanıcının sesini aç",
65
- "Unpin from Conversation": "Sabitlemeyi kaldır",
64
+ "Unmute User": "",
65
+ "Unpin from Conversation": "",
66
66
  "Unread Messages": "Okunmamış Mesajlar",
67
67
  "Video": "Video",
68
- "You": "Sen",
69
- "You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
70
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
68
+ "You": "",
69
+ "You can't send messages in this channel": "",
70
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
71
  "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
72
72
  "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
73
- "{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
74
- "{{ user }} is typing": "{{ user }} yazıyor",
75
- "🏙 Attachment...": "🏙 Ek..."
73
+ "{{ replyCount }} Thread Replies": "",
74
+ "{{ user }} is typing": "",
75
+ "🏙 Attachment...": ""
76
76
  }
@@ -5,6 +5,7 @@ import { selectMessagesForChannels } from './queries/selectMessagesForChannels';
5
5
  import { selectReactionsForMessages } from './queries/selectReactionsForMessages';
6
6
 
7
7
  import type { DefaultStreamChatGenerics } from '../../types/types';
8
+ import { isBlockedMessage } from '../../utils/utils';
8
9
  import { mapStorableToMessage } from '../mappers/mapStorableToMessage';
9
10
  import type { TableRowJoinedUser } from '../types';
10
11
 
@@ -37,13 +38,15 @@ export const getChannelMessages = <
37
38
  cidVsMessages[m.cid] = [];
38
39
  }
39
40
 
40
- cidVsMessages[m.cid].push(
41
- mapStorableToMessage<StreamChatGenerics>({
42
- currentUserId,
43
- messageRow: m,
44
- reactionRows: messageIdVsReactions[m.id],
45
- }),
46
- );
41
+ if (!isBlockedMessage(m)) {
42
+ cidVsMessages[m.cid].push(
43
+ mapStorableToMessage<StreamChatGenerics>({
44
+ currentUserId,
45
+ messageRow: m,
46
+ reactionRows: messageIdVsReactions[m.id],
47
+ }),
48
+ );
49
+ }
47
50
  });
48
51
 
49
52
  return cidVsMessages;
@@ -13,6 +13,7 @@ import type {
13
13
  UserResponse,
14
14
  } from 'stream-chat';
15
15
 
16
+ import type { MessageType } from '../components/MessageList/hooks/useMessageList';
16
17
  import type { MentionAllAppUsersQuery } from '../contexts/messageInputContext/MessageInputContext';
17
18
  import type {
18
19
  SuggestionCommand,
@@ -21,6 +22,7 @@ import type {
21
22
  } from '../contexts/suggestionsContext/SuggestionsContext';
22
23
  import { compiledEmojis, Emoji } from '../emoji-data/compiled';
23
24
  import type { IconProps } from '../icons/utils/base';
25
+ import type { TableRowJoinedUser } from '../store/types';
24
26
  import type { DefaultStreamChatGenerics, ValueOf } from '../types/types';
25
27
 
26
28
  export type ReactionData = {
@@ -82,6 +84,16 @@ export const getIndicatorTypeForFileState = (
82
84
  return indicatorMap[fileState];
83
85
  };
84
86
 
87
+ export const isBlockedMessage = <
88
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
89
+ >(
90
+ message: MessageType<StreamChatGenerics> | TableRowJoinedUser<'messages'>,
91
+ ) => {
92
+ // The only indicator for the blocked message is its message type is error and that the message text contains "Message was blocked by moderation policies".
93
+ const pattern = /\bMessage was blocked by moderation policies\b/;
94
+ return message.type === 'error' && message.text && pattern.test(message.text);
95
+ };
96
+
85
97
  const defaultAutoCompleteSuggestionsLimit = 10;
86
98
  const defaultMentionAllAppUsersQuery = {
87
99
  filters: {},
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.23.2"
2
+ "version": "5.24.0-beta.1"
3
3
  }