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.
- package/lib/commonjs/components/Chat/Chat.js +25 -16
- package/lib/commonjs/components/Chat/Chat.js.map +1 -1
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js +18 -12
- package/lib/commonjs/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/commonjs/i18n/es.json +29 -29
- package/lib/commonjs/i18n/fr.json +29 -29
- package/lib/commonjs/i18n/he.json +29 -29
- package/lib/commonjs/i18n/hi.json +30 -30
- package/lib/commonjs/i18n/it.json +30 -30
- package/lib/commonjs/i18n/ja.json +30 -30
- package/lib/commonjs/i18n/ko.json +30 -30
- package/lib/commonjs/i18n/nl.json +30 -30
- package/lib/commonjs/i18n/pt-BR.json +30 -30
- package/lib/commonjs/i18n/ru.json +30 -30
- package/lib/commonjs/i18n/tr.json +30 -30
- package/lib/commonjs/utils/addReactionToLocalState.js +3 -2
- package/lib/commonjs/utils/addReactionToLocalState.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Chat/Chat.js +25 -16
- package/lib/module/components/Chat/Chat.js.map +1 -1
- package/lib/module/components/Chat/hooks/useAppSettings.js +18 -12
- package/lib/module/components/Chat/hooks/useAppSettings.js.map +1 -1
- package/lib/module/i18n/es.json +29 -29
- package/lib/module/i18n/fr.json +29 -29
- package/lib/module/i18n/he.json +29 -29
- package/lib/module/i18n/hi.json +30 -30
- package/lib/module/i18n/it.json +30 -30
- package/lib/module/i18n/ja.json +30 -30
- package/lib/module/i18n/ko.json +30 -30
- package/lib/module/i18n/nl.json +30 -30
- package/lib/module/i18n/pt-BR.json +30 -30
- package/lib/module/i18n/ru.json +30 -30
- package/lib/module/i18n/tr.json +30 -30
- package/lib/module/utils/addReactionToLocalState.js +3 -2
- package/lib/module/utils/addReactionToLocalState.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/i18n/es.json +29 -29
- package/lib/typescript/i18n/fr.json +29 -29
- package/lib/typescript/i18n/he.json +29 -29
- package/lib/typescript/i18n/hi.json +30 -30
- package/lib/typescript/i18n/it.json +30 -30
- package/lib/typescript/i18n/ja.json +30 -30
- package/lib/typescript/i18n/ko.json +30 -30
- package/lib/typescript/i18n/nl.json +30 -30
- package/lib/typescript/i18n/pt-BR.json +30 -30
- package/lib/typescript/i18n/ru.json +30 -30
- package/lib/typescript/i18n/tr.json +30 -30
- package/package.json +1 -1
- package/src/components/Chat/Chat.tsx +17 -6
- package/src/components/Chat/hooks/useAppSettings.ts +3 -1
- package/src/i18n/es.json +29 -29
- package/src/i18n/fr.json +29 -29
- package/src/i18n/he.json +29 -29
- package/src/i18n/hi.json +30 -30
- package/src/i18n/it.json +30 -30
- package/src/i18n/ja.json +30 -30
- package/src/i18n/ko.json +30 -30
- package/src/i18n/nl.json +30 -30
- package/src/i18n/pt-BR.json +30 -30
- package/src/i18n/ru.json +30 -30
- package/src/i18n/tr.json +30 -30
- package/src/utils/addReactionToLocalState.ts +7 -2
- package/src/version.json +1 -1
package/src/i18n/pt-BR.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
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...": "
|
|
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": "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?": "
|
|
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": "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": "
|
|
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...": "
|
|
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": "
|
|
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": "Por favor, selecione um canal primeiro",
|
|
53
|
+
"Reconnecting...": "",
|
|
54
54
|
"Reply": "",
|
|
55
|
-
"Reply to Message": "
|
|
55
|
+
"Reply to Message": "",
|
|
56
56
|
"Resend": "",
|
|
57
|
-
"Search GIFs": "
|
|
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": "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": "
|
|
69
|
+
"Unread Messages": "",
|
|
70
70
|
"Video": "Vídeo",
|
|
71
71
|
"You": "Você",
|
|
72
|
-
"You can't send messages in this channel": "
|
|
73
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "
|
|
72
|
+
"You can't send messages in this channel": "",
|
|
73
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "
|
|
75
|
+
"{{ replyCount }} Replies": "",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
|
-
"{{ user }} is typing": "
|
|
78
|
-
"🏙 Attachment...": "
|
|
77
|
+
"{{ user }} is typing": "",
|
|
78
|
+
"🏙 Attachment...": ""
|
|
79
79
|
}
|
package/src/i18n/ru.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
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": "
|
|
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": "
|
|
72
|
+
"You can't send messages in this channel": "",
|
|
73
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "
|
|
75
|
+
"{{ replyCount }} Replies": "",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
|
-
"{{ user }} is typing": "
|
|
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": "
|
|
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...": "
|
|
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": "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?": "
|
|
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": "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": "
|
|
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...": "
|
|
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": "
|
|
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": "Lütfen önce bir kanal seçiniz",
|
|
53
|
+
"Reconnecting...": "",
|
|
54
54
|
"Reply": "",
|
|
55
|
-
"Reply to Message": "
|
|
55
|
+
"Reply to Message": "",
|
|
56
56
|
"Resend": "",
|
|
57
|
-
"Search GIFs": "
|
|
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": "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": "
|
|
69
|
+
"Unread Messages": "",
|
|
70
70
|
"Video": "Video",
|
|
71
71
|
"You": "Sen",
|
|
72
|
-
"You can't send messages in this channel": "
|
|
73
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "
|
|
72
|
+
"You can't send messages in this channel": "",
|
|
73
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "
|
|
75
|
+
"{{ replyCount }} Replies": "",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
|
-
"{{ user }} is typing": "
|
|
78
|
-
"🏙 Attachment...": "
|
|
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 (
|
|
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