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

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 (57) hide show
  1. package/lib/commonjs/i18n/en.json +1 -1
  2. package/lib/commonjs/i18n/es.json +56 -56
  3. package/lib/commonjs/i18n/fr.json +56 -56
  4. package/lib/commonjs/i18n/he.json +56 -56
  5. package/lib/commonjs/i18n/hi.json +57 -57
  6. package/lib/commonjs/i18n/it.json +57 -57
  7. package/lib/commonjs/i18n/ja.json +57 -57
  8. package/lib/commonjs/i18n/ko.json +57 -57
  9. package/lib/commonjs/i18n/nl.json +57 -57
  10. package/lib/commonjs/i18n/pt-BR.json +57 -57
  11. package/lib/commonjs/i18n/ru.json +57 -57
  12. package/lib/commonjs/i18n/tr.json +57 -57
  13. package/lib/commonjs/utils/addReactionToLocalState.js +3 -2
  14. package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
  15. package/lib/commonjs/version.json +1 -1
  16. package/lib/module/i18n/en.json +1 -1
  17. package/lib/module/i18n/es.json +56 -56
  18. package/lib/module/i18n/fr.json +56 -56
  19. package/lib/module/i18n/he.json +56 -56
  20. package/lib/module/i18n/hi.json +57 -57
  21. package/lib/module/i18n/it.json +57 -57
  22. package/lib/module/i18n/ja.json +57 -57
  23. package/lib/module/i18n/ko.json +57 -57
  24. package/lib/module/i18n/nl.json +57 -57
  25. package/lib/module/i18n/pt-BR.json +57 -57
  26. package/lib/module/i18n/ru.json +57 -57
  27. package/lib/module/i18n/tr.json +57 -57
  28. package/lib/module/utils/addReactionToLocalState.js +3 -2
  29. package/lib/module/utils/addReactionToLocalState.js.map +1 -1
  30. package/lib/module/version.json +1 -1
  31. package/lib/typescript/i18n/en.json +1 -1
  32. package/lib/typescript/i18n/es.json +56 -56
  33. package/lib/typescript/i18n/fr.json +56 -56
  34. package/lib/typescript/i18n/he.json +56 -56
  35. package/lib/typescript/i18n/hi.json +57 -57
  36. package/lib/typescript/i18n/it.json +57 -57
  37. package/lib/typescript/i18n/ja.json +57 -57
  38. package/lib/typescript/i18n/ko.json +57 -57
  39. package/lib/typescript/i18n/nl.json +57 -57
  40. package/lib/typescript/i18n/pt-BR.json +57 -57
  41. package/lib/typescript/i18n/ru.json +57 -57
  42. package/lib/typescript/i18n/tr.json +57 -57
  43. package/package.json +1 -1
  44. package/src/i18n/en.json +1 -1
  45. package/src/i18n/es.json +56 -56
  46. package/src/i18n/fr.json +56 -56
  47. package/src/i18n/he.json +56 -56
  48. package/src/i18n/hi.json +57 -57
  49. package/src/i18n/it.json +57 -57
  50. package/src/i18n/ja.json +57 -57
  51. package/src/i18n/ko.json +57 -57
  52. package/src/i18n/nl.json +57 -57
  53. package/src/i18n/pt-BR.json +57 -57
  54. package/src/i18n/ru.json +57 -57
  55. package/src/i18n/tr.json +57 -57
  56. package/src/utils/addReactionToLocalState.ts +7 -2
  57. package/src/version.json +1 -1
package/src/i18n/ru.json CHANGED
@@ -1,79 +1,79 @@
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
- "Are you sure you want to permanently delete this message?": "",
8
- "Are you sure?": "",
9
- "Block User": "",
10
- "Cancel": "",
11
- "Cannot Flag Message": "",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
13
- "Copy Message": "",
14
- "Delete": "",
15
- "Delete Message": "",
7
+ "Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
8
+ "Are you sure?": "Вы уверены?",
9
+ "Block User": "Заблокировать пользователя",
10
+ "Cancel": "Отмена",
11
+ "Cannot Flag Message": "Невозможно пожаловаться на сообщение",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Обдумайте, как ваш комментарий может повлиять на других, и убедитесь, что вы следуете нашим правилам сообщества",
13
+ "Copy Message": "Копировать сообщение",
14
+ "Delete": "удалять",
15
+ "Delete Message": "Удалить сообщение",
16
16
  "Device camera is used to take photos or videos.": "",
17
- "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
- "Edit Message": "",
19
- "Editing Message": "",
20
- "Emoji matching": "",
21
- "Empty message...": "Пустое сообщение...",
22
- "Error loading": "Ошибка при загрузке",
23
- "Error loading channel list...": "Ошибка загрузки списка каналов...",
17
+ "Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
18
+ "Edit Message": "Редактировать сообщение",
19
+ "Editing Message": "Редактирование сообщения",
20
+ "Emoji matching": "Соответствие эмодзи",
21
+ "Empty message...": "",
22
+ "Error loading": "",
23
+ "Error loading channel list...": "",
24
24
  "Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
25
- "Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
26
- "File type not supported": "Тип файла не поддерживается",
27
- "Flag": "",
28
- "Flag Message": "",
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?": "Как насчет отправки первого сообщения другу?",
31
- "Instant Commands": "",
32
- "Let's start chatting!": "Давайте начнем общаться!",
33
- "Links are disabled": "",
34
- "Loading channels...": "Загружаю каналы...",
35
- "Loading messages...": "Загружаю сообщения...",
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": "Сообщения Реакции",
25
+ "Error while loading, please reload/refresh": "",
26
+ "File type not supported": "",
27
+ "Flag": "Пометить",
28
+ "Flag Message": "Пометить сообщение",
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?": "",
31
+ "Instant Commands": "Мгновенные Команды",
32
+ "Let's start chatting!": "",
33
+ "Links are disabled": "Ссылки отключены",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
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
- "Message flagged": "",
41
- "Mute User": "",
42
- "Not supported": "",
43
- "Nothing yet...": "Пока ничего нет...",
44
- "Ok": "",
45
- "Only visible to you": "Видно только вам",
40
+ "Message flagged": "Сообщение отмечено",
41
+ "Mute User": "Отключить пользователя",
42
+ "Not supported": "не поддерживается",
43
+ "Nothing yet...": "",
44
+ "Ok": "",
45
+ "Only visible to you": "",
46
46
  "Open Settings": "",
47
47
  "Photo": "Фото",
48
48
  "Photos and Videos": "",
49
- "Pin to Conversation": "",
50
- "Pinned by": "Закреплено пользователем",
49
+ "Pin to Conversation": "Закрепить к беседе",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "",
52
- "Please select a channel first": "",
52
+ "Please select a channel first": "Пожалуйста, сначала выберите канал",
53
53
  "Reconnecting...": "Переподключение...",
54
- "Reply": "",
55
- "Reply to Message": "Ответить на сообщение",
56
- "Resend": "",
57
- "Search GIFs": "Поиск GIF",
54
+ "Reply": "Ответить",
55
+ "Reply to Message": "",
56
+ "Resend": "Отправить",
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": "Медленный режим включен",
63
- "The message has been reported to a moderator.": "",
64
- "Thread Reply": "",
65
- "Unblock User": "",
59
+ "Send Anyway": "Всё равно отправить",
60
+ "Send a message": "",
61
+ "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
62
+ "Slow mode ON": "",
63
+ "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
64
+ "Thread Reply": "Тема Ответить",
65
+ "Unblock User": "Разблокировать пользователя",
66
66
  "Unknown User": "",
67
- "Unmute User": "",
68
- "Unpin from Conversation": "",
69
- "Unread Messages": "Непрочитанные Сообщения",
67
+ "Unmute User": "Включить микрофон",
68
+ "Unpin from Conversation": "Открепить от беседы",
69
+ "Unread Messages": "",
70
70
  "Video": "видео",
71
71
  "You": "Вы",
72
- "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
72
+ "You can't send messages in this channel": "",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
74
74
  "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
75
+ "{{ replyCount }} Replies": "",
76
76
  "{{ replyCount }} Thread Replies": "",
77
77
  "{{ user }} is typing": "{{ user }} пишет",
78
- "🏙 Attachment...": "🏙 Вложение..."
78
+ "🏙 Attachment...": ""
79
79
  }
package/src/i18n/tr.json CHANGED
@@ -1,79 +1,79 @@
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
- "Are you sure you want to permanently delete this message?": "",
8
- "Are you sure?": "",
9
- "Block User": "",
10
- "Cancel": "",
11
- "Cannot Flag Message": "",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
13
- "Copy Message": "",
14
- "Delete": "",
15
- "Delete Message": "",
7
+ "Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
8
+ "Are you sure?": "Emin misiniz?",
9
+ "Block User": "Kullanıcıyı engelle",
10
+ "Cancel": "İptal",
11
+ "Cannot Flag Message": "Raporlama Başarısız",
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
+ "Copy Message": "Mesajı Kopyala",
14
+ "Delete": "Sil",
15
+ "Delete Message": "Mesajı Sil",
16
16
  "Device camera is used to take photos or videos.": "",
17
- "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
- "Edit Message": "",
19
- "Editing Message": "",
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...",
17
+ "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?",
18
+ "Edit Message": "Mesajı Düzenle",
19
+ "Editing Message": "Mesaj Düzenleniyor",
20
+ "Emoji matching": "Emoji eşleştirme",
21
+ "Empty message...": "",
22
+ "Error loading": "",
23
+ "Error loading channel list...": "",
24
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",
26
- "File type not supported": "Dosya türü desteklenmiyor",
27
- "Flag": "",
28
- "Flag Message": "",
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?",
31
- "Instant Commands": "",
32
- "Let's start chatting!": "Haydi sohbete başlayalım!",
33
- "Links are disabled": "",
34
- "Loading channels...": "Kanallar yükleniyor...",
35
- "Loading messages...": "Mesajlar yükleniyor...",
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",
25
+ "Error while loading, please reload/refresh": "",
26
+ "File type not supported": "",
27
+ "Flag": "Raporla",
28
+ "Flag Message": "Mesajı Raporla",
29
+ "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.",
30
+ "How about sending your first message to a friend?": "",
31
+ "Instant Commands": "Anlık Komutlar",
32
+ "Let's start chatting!": "",
33
+ "Links are disabled": "Bağlantılar devre dışı",
34
+ "Loading channels...": "",
35
+ "Loading messages...": "",
36
+ "Loading...": "",
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
- "Message flagged": "",
41
- "Mute User": "",
42
- "Not supported": "",
43
- "Nothing yet...": "Henüz değil...",
44
- "Ok": "",
45
- "Only visible to you": "Sadece siz görebilirsiniz",
40
+ "Message flagged": "Mesaj işaretlendi",
41
+ "Mute User": "Kullanıcıyı sessize al",
42
+ "Not supported": "Desteklenmiyor",
43
+ "Nothing yet...": "",
44
+ "Ok": "Tamam",
45
+ "Only visible to you": "",
46
46
  "Open Settings": "",
47
47
  "Photo": "Fotoğraf",
48
48
  "Photos and Videos": "",
49
- "Pin to Conversation": "",
50
- "Pinned by": "Tarafından sabitlendi",
49
+ "Pin to Conversation": "Konuşmaya sabitle",
50
+ "Pinned by": "",
51
51
  "Please enable access to your photos and videos so you can share them.": "",
52
- "Please select a channel first": "",
52
+ "Please select a channel first": "Lütfen önce bir kanal seçiniz",
53
53
  "Reconnecting...": "Yeniden Bağlanılıyor...",
54
- "Reply": "",
55
- "Reply to Message": "Mesajı Yanıtla",
56
- "Resend": "",
57
- "Search GIFs": "GIF Ara",
54
+ "Reply": "Yanıtla",
55
+ "Reply to Message": "",
56
+ "Resend": "Yeniden gönder",
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",
63
- "The message has been reported to a moderator.": "",
64
- "Thread Reply": "",
65
- "Unblock User": "",
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
+ "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
64
+ "Thread Reply": "Konu Yanıtı",
65
+ "Unblock User": "Kullanıcının engelini kaldır",
66
66
  "Unknown User": "",
67
- "Unmute User": "",
68
- "Unpin from Conversation": "",
69
- "Unread Messages": "Okunmamış Mesajlar",
67
+ "Unmute User": "Kullanıcının sesini aç",
68
+ "Unpin from Conversation": "Sabitlemeyi kaldır",
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",
72
+ "You can't send messages in this channel": "",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
74
74
  "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
75
+ "{{ replyCount }} Replies": "",
76
76
  "{{ replyCount }} Thread Replies": "",
77
77
  "{{ user }} is typing": "{{ user }} yazıyor",
78
- "🏙 Attachment...": "🏙 Ek..."
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.2"
3
3
  }