stream-chat-react-native-core 5.27.0-beta.1 → 5.27.0-beta.3

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 (63) hide show
  1. package/lib/commonjs/components/Chat/Chat.js +25 -16
  2. package/lib/commonjs/components/Chat/Chat.js.map +1 -1
  3. package/lib/commonjs/components/Chat/hooks/useAppSettings.js +18 -12
  4. package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
  5. package/lib/commonjs/i18n/es.json +29 -29
  6. package/lib/commonjs/i18n/fr.json +29 -29
  7. package/lib/commonjs/i18n/he.json +29 -29
  8. package/lib/commonjs/i18n/hi.json +30 -30
  9. package/lib/commonjs/i18n/it.json +30 -30
  10. package/lib/commonjs/i18n/ja.json +30 -30
  11. package/lib/commonjs/i18n/ko.json +30 -30
  12. package/lib/commonjs/i18n/nl.json +30 -30
  13. package/lib/commonjs/i18n/pt-BR.json +30 -30
  14. package/lib/commonjs/i18n/ru.json +30 -30
  15. package/lib/commonjs/i18n/tr.json +30 -30
  16. package/lib/commonjs/utils/addReactionToLocalState.js +3 -2
  17. package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
  18. package/lib/commonjs/version.json +1 -1
  19. package/lib/module/components/Chat/Chat.js +25 -16
  20. package/lib/module/components/Chat/Chat.js.map +1 -1
  21. package/lib/module/components/Chat/hooks/useAppSettings.js +18 -12
  22. package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
  23. package/lib/module/i18n/es.json +29 -29
  24. package/lib/module/i18n/fr.json +29 -29
  25. package/lib/module/i18n/he.json +29 -29
  26. package/lib/module/i18n/hi.json +30 -30
  27. package/lib/module/i18n/it.json +30 -30
  28. package/lib/module/i18n/ja.json +30 -30
  29. package/lib/module/i18n/ko.json +30 -30
  30. package/lib/module/i18n/nl.json +30 -30
  31. package/lib/module/i18n/pt-BR.json +30 -30
  32. package/lib/module/i18n/ru.json +30 -30
  33. package/lib/module/i18n/tr.json +30 -30
  34. package/lib/module/utils/addReactionToLocalState.js +3 -2
  35. package/lib/module/utils/addReactionToLocalState.js.map +1 -1
  36. package/lib/module/version.json +1 -1
  37. package/lib/typescript/i18n/es.json +29 -29
  38. package/lib/typescript/i18n/fr.json +29 -29
  39. package/lib/typescript/i18n/he.json +29 -29
  40. package/lib/typescript/i18n/hi.json +30 -30
  41. package/lib/typescript/i18n/it.json +30 -30
  42. package/lib/typescript/i18n/ja.json +30 -30
  43. package/lib/typescript/i18n/ko.json +30 -30
  44. package/lib/typescript/i18n/nl.json +30 -30
  45. package/lib/typescript/i18n/pt-BR.json +30 -30
  46. package/lib/typescript/i18n/ru.json +30 -30
  47. package/lib/typescript/i18n/tr.json +30 -30
  48. package/package.json +1 -1
  49. package/src/components/Chat/Chat.tsx +17 -6
  50. package/src/components/Chat/hooks/useAppSettings.ts +3 -1
  51. package/src/i18n/es.json +29 -29
  52. package/src/i18n/fr.json +29 -29
  53. package/src/i18n/he.json +29 -29
  54. package/src/i18n/hi.json +30 -30
  55. package/src/i18n/it.json +30 -30
  56. package/src/i18n/ja.json +30 -30
  57. package/src/i18n/ko.json +30 -30
  58. package/src/i18n/nl.json +30 -30
  59. package/src/i18n/pt-BR.json +30 -30
  60. package/src/i18n/ru.json +30 -30
  61. package/src/i18n/tr.json +30 -30
  62. package/src/utils/addReactionToLocalState.ts +7 -2
  63. package/src/version.json +1 -1
@@ -1,15 +1,15 @@
1
1
  {
2
- "1 Reply": "1 Resposta",
2
+ "1 Reply": "",
3
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
7
  "Are you sure you want to permanently delete this message?": "",
8
- "Are you sure?": "",
8
+ "Are you sure?": "Tem certeza?",
9
9
  "Block User": "",
10
10
  "Cancel": "",
11
11
  "Cannot Flag Message": "",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Considere como seu comentário pode fazer os outros se sentirem e certifique-se de seguir nossas Diretrizes da Comunidade",
13
13
  "Copy Message": "",
14
14
  "Delete": "",
15
15
  "Delete Message": "",
@@ -18,62 +18,62 @@
18
18
  "Edit Message": "",
19
19
  "Editing Message": "",
20
20
  "Emoji matching": "",
21
- "Empty message...": "Mensagem vazia...",
22
- "Error loading": "Erro ao carregar",
23
- "Error loading channel list...": "Erro ao carregar lista de canais...",
24
- "Error loading messages for this channel...": "Erro ao carregar mensagens para este canal...",
25
- "Error while loading, please reload/refresh": "Erro ao carregar, por favor recarregue/atualize",
21
+ "Empty message...": "",
22
+ "Error loading": "",
23
+ "Error loading channel list...": "",
24
+ "Error loading messages for this channel...": "",
25
+ "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "Tipo de arquivo não suportado",
27
27
  "Flag": "",
28
28
  "Flag Message": "",
29
29
  "Flag action failed either due to a network issue or the message is already flagged": "",
30
- "How about sending your first message to a friend?": "Que tal enviar sua primeira mensagem para um amigo?",
30
+ "How about sending your first message to a friend?": "",
31
31
  "Instant Commands": "",
32
- "Let's start chatting!": "Vamos começar a conversar!",
33
- "Links are disabled": "",
32
+ "Let's start chatting!": "",
33
+ "Links are disabled": "Links estão desabilitados",
34
34
  "Loading channels...": "Carregando canais...",
35
35
  "Loading messages...": "Carregando mensagens...",
36
36
  "Loading...": "Carregando...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "Reações à Mensagem",
37
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Limite máximo de tamanho de arquivo atingido. Por favor, faça o upload de um arquivo abaixo de {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "Mensagem excluída",
40
40
  "Message flagged": "",
41
41
  "Mute User": "",
42
- "Not supported": "",
43
- "Nothing yet...": "Nada ainda...",
42
+ "Not supported": "Não suportado",
43
+ "Nothing yet...": "",
44
44
  "Ok": "",
45
45
  "Only visible to you": "Apenas visível para você",
46
46
  "Open Settings": "",
47
47
  "Photo": "Foto",
48
48
  "Photos and Videos": "",
49
49
  "Pin to Conversation": "",
50
- "Pinned by": "Fixado por",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "",
52
- "Please select a channel first": "",
53
- "Reconnecting...": "Reconectando...",
52
+ "Please select a channel first": "Por favor, selecione um canal primeiro",
53
+ "Reconnecting...": "",
54
54
  "Reply": "",
55
- "Reply to Message": "Responder à Mensagem",
55
+ "Reply to Message": "",
56
56
  "Resend": "",
57
- "Search GIFs": "Pesquisar GIFs",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "",
59
- "Send Anyway": "",
60
- "Send a message": "Enviar uma mensagem",
61
- "Sending links is not allowed in this conversation": "",
62
- "Slow mode ON": "Modo Lento ATIVADO",
59
+ "Send Anyway": "Enviar de qualquer maneira",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "Não é permitido enviar links nesta conversa",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "",
64
64
  "Thread Reply": "",
65
65
  "Unblock User": "",
66
66
  "Unknown User": "",
67
67
  "Unmute User": "",
68
68
  "Unpin from Conversation": "",
69
- "Unread Messages": "Mensagens não lidas",
69
+ "Unread Messages": "",
70
70
  "Video": "Vídeo",
71
71
  "You": "Você",
72
- "You can't send messages in this channel": "Você não pode enviar mensagens neste canal",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e mais {{ nonSelfUserLength }} pessoa(s) estão digitando",
72
+ "You can't send messages in this channel": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
74
  "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "{{ replyCount }} Respostas",
75
+ "{{ replyCount }} Replies": "",
76
76
  "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "{{ user }} está digitando",
78
- "🏙 Attachment...": "🏙 Anexo..."
77
+ "{{ user }} is typing": "",
78
+ "🏙 Attachment...": ""
79
79
  }
package/src/i18n/ru.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
- "1 Reply": "1 Ответ",
2
+ "1 Reply": "",
3
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
7
  "Are you sure you want to permanently delete this message?": "",
8
- "Are you sure?": "",
8
+ "Are you sure?": "Вы уверены?",
9
9
  "Block User": "",
10
10
  "Cancel": "",
11
11
  "Cannot Flag Message": "",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Обдумайте, как ваш комментарий может повлиять на других, и убедитесь, что вы следуете нашим правилам сообщества",
13
13
  "Copy Message": "",
14
14
  "Delete": "",
15
15
  "Delete Message": "",
@@ -18,62 +18,62 @@
18
18
  "Edit Message": "",
19
19
  "Editing Message": "",
20
20
  "Emoji matching": "",
21
- "Empty message...": "Пустое сообщение...",
22
- "Error loading": "Ошибка при загрузке",
23
- "Error loading channel list...": "Ошибка загрузки списка каналов...",
24
- "Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
25
- "Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
21
+ "Empty message...": "",
22
+ "Error loading": "",
23
+ "Error loading channel list...": "",
24
+ "Error loading messages for this channel...": "",
25
+ "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "Тип файла не поддерживается",
27
27
  "Flag": "",
28
28
  "Flag Message": "",
29
29
  "Flag action failed either due to a network issue or the message is already flagged": "",
30
- "How about sending your first message to a friend?": "Как насчет отправки первого сообщения другу?",
30
+ "How about sending your first message to a friend?": "",
31
31
  "Instant Commands": "",
32
- "Let's start chatting!": "Давайте начнем общаться!",
33
- "Links are disabled": "",
32
+ "Let's start chatting!": "",
33
+ "Links are disabled": "Ссылки отключены",
34
34
  "Loading channels...": "Загружаю каналы...",
35
35
  "Loading messages...": "Загружаю сообщения...",
36
36
  "Loading...": "Загружаю...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "Сообщения Реакции",
37
+ "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}} МБ.",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "Сообщение удалено",
40
40
  "Message flagged": "",
41
41
  "Mute User": "",
42
- "Not supported": "",
43
- "Nothing yet...": "Пока ничего нет...",
42
+ "Not supported": "не поддерживается",
43
+ "Nothing yet...": "",
44
44
  "Ok": "",
45
45
  "Only visible to you": "Видно только вам",
46
46
  "Open Settings": "",
47
47
  "Photo": "Фото",
48
48
  "Photos and Videos": "",
49
49
  "Pin to Conversation": "",
50
- "Pinned by": "Закреплено пользователем",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "",
52
- "Please select a channel first": "",
53
- "Reconnecting...": "Переподключение...",
52
+ "Please select a channel first": "Пожалуйста, сначала выберите канал",
53
+ "Reconnecting...": "",
54
54
  "Reply": "",
55
- "Reply to Message": "Ответить на сообщение",
55
+ "Reply to Message": "",
56
56
  "Resend": "",
57
- "Search GIFs": "Поиск GIF",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "",
59
- "Send Anyway": "",
60
- "Send a message": "Отправить сообщение",
61
- "Sending links is not allowed in this conversation": "",
62
- "Slow mode ON": "Медленный режим включен",
59
+ "Send Anyway": "Всё равно отправить",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "",
64
64
  "Thread Reply": "",
65
65
  "Unblock User": "",
66
66
  "Unknown User": "",
67
67
  "Unmute User": "",
68
68
  "Unpin from Conversation": "",
69
- "Unread Messages": "Непрочитанные Сообщения",
69
+ "Unread Messages": "",
70
70
  "Video": "видео",
71
71
  "You": "Вы",
72
- "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
72
+ "You can't send messages in this channel": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
74
  "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
75
+ "{{ replyCount }} Replies": "",
76
76
  "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "{{ user }} пишет",
78
- "🏙 Attachment...": "🏙 Вложение..."
77
+ "{{ user }} is typing": "",
78
+ "🏙 Attachment...": ""
79
79
  }
package/src/i18n/tr.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
- "1 Reply": "1 Cevap",
2
+ "1 Reply": "",
3
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
7
  "Are you sure you want to permanently delete this message?": "",
8
- "Are you sure?": "",
8
+ "Are you sure?": "Emin misiniz?",
9
9
  "Block User": "",
10
10
  "Cancel": "",
11
11
  "Cannot Flag Message": "",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Yorumunuzun diğerlerini nasıl hissettirebileceğini düşünün ve topluluk kurallarımızı takip ettiğinizden emin olun",
13
13
  "Copy Message": "",
14
14
  "Delete": "",
15
15
  "Delete Message": "",
@@ -18,62 +18,62 @@
18
18
  "Edit Message": "",
19
19
  "Editing Message": "",
20
20
  "Emoji matching": "",
21
- "Empty message...": "Boş mesaj...",
22
- "Error loading": "Yükleme hatası",
23
- "Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
24
- "Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
25
- "Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
21
+ "Empty message...": "",
22
+ "Error loading": "",
23
+ "Error loading channel list...": "",
24
+ "Error loading messages for this channel...": "",
25
+ "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "Dosya türü desteklenmiyor",
27
27
  "Flag": "",
28
28
  "Flag Message": "",
29
29
  "Flag action failed either due to a network issue or the message is already flagged": "",
30
- "How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
30
+ "How about sending your first message to a friend?": "",
31
31
  "Instant Commands": "",
32
- "Let's start chatting!": "Haydi sohbete başlayalım!",
33
- "Links are disabled": "",
32
+ "Let's start chatting!": "",
33
+ "Links are disabled": "Bağlantılar devre dışı",
34
34
  "Loading channels...": "Kanallar yükleniyor...",
35
35
  "Loading messages...": "Mesajlar yükleniyor...",
36
36
  "Loading...": "Yükleniyor...",
37
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "Mesaj Tepkileri",
37
+ "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.",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "Mesaj silindi",
40
40
  "Message flagged": "",
41
41
  "Mute User": "",
42
- "Not supported": "",
43
- "Nothing yet...": "Henüz değil...",
42
+ "Not supported": "Desteklenmiyor",
43
+ "Nothing yet...": "",
44
44
  "Ok": "",
45
45
  "Only visible to you": "Sadece siz görebilirsiniz",
46
46
  "Open Settings": "",
47
47
  "Photo": "Fotoğraf",
48
48
  "Photos and Videos": "",
49
49
  "Pin to Conversation": "",
50
- "Pinned by": "Tarafından sabitlendi",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "",
52
- "Please select a channel first": "",
53
- "Reconnecting...": "Yeniden Bağlanılıyor...",
52
+ "Please select a channel first": "Lütfen önce bir kanal seçiniz",
53
+ "Reconnecting...": "",
54
54
  "Reply": "",
55
- "Reply to Message": "Mesajı Yanıtla",
55
+ "Reply to Message": "",
56
56
  "Resend": "",
57
- "Search GIFs": "GIF Ara",
57
+ "Search GIFs": "",
58
58
  "Select More Photos": "",
59
- "Send Anyway": "",
60
- "Send a message": "Mesaj gönder",
61
- "Sending links is not allowed in this conversation": "",
62
- "Slow mode ON": "Yavaş Mod Açık",
59
+ "Send Anyway": "Yine de Gönder",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
62
+ "Slow mode ON": "",
63
63
  "The message has been reported to a moderator.": "",
64
64
  "Thread Reply": "",
65
65
  "Unblock User": "",
66
66
  "Unknown User": "",
67
67
  "Unmute User": "",
68
68
  "Unpin from Conversation": "",
69
- "Unread Messages": "Okunmamış Mesajlar",
69
+ "Unread Messages": "",
70
70
  "Video": "Video",
71
71
  "You": "Sen",
72
- "You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
72
+ "You can't send messages in this channel": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
74
  "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
75
+ "{{ replyCount }} Replies": "",
76
76
  "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "{{ user }} yazıyor",
78
- "🏙 Attachment...": "🏙 Ek..."
77
+ "{{ user }} is typing": "",
78
+ "🏙 Attachment...": ""
79
79
  }
@@ -49,7 +49,12 @@ export const addReactionToLocalState = <
49
49
  message.latest_reactions = [];
50
50
  }
51
51
  message.latest_reactions = message.latest_reactions.filter((r) => r.user_id !== user.id);
52
- if (currentReaction && message.reaction_counts) {
52
+ if (
53
+ currentReaction &&
54
+ message.reaction_counts &&
55
+ message.reaction_counts[currentReaction.type] &&
56
+ message.reaction_counts[currentReaction.type] > 0
57
+ ) {
53
58
  message.reaction_counts[currentReaction.type] =
54
59
  message.reaction_counts[currentReaction.type] - 1;
55
60
  }
@@ -67,7 +72,7 @@ export const addReactionToLocalState = <
67
72
  [reactionType]: 1,
68
73
  };
69
74
  } else {
70
- message.reaction_counts[reactionType] = message.reaction_counts[reactionType] + 1;
75
+ message.reaction_counts[reactionType] = (message.reaction_counts?.[reactionType] || 0) + 1;
71
76
  }
72
77
  }
73
78
 
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.27.0-beta.1"
2
+ "version": "5.27.0-beta.3"
3
3
  }