stream-chat-react-native-core 5.23.3-beta.1 → 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 (49) hide show
  1. package/lib/commonjs/components/Message/Message.js +10 -7
  2. package/lib/commonjs/components/Message/Message.js.map +1 -1
  3. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +9 -9
  4. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  5. package/lib/commonjs/i18n/fr.json +21 -21
  6. package/lib/commonjs/i18n/hi.json +21 -21
  7. package/lib/commonjs/i18n/it.json +21 -21
  8. package/lib/commonjs/i18n/nl.json +21 -21
  9. package/lib/commonjs/i18n/ru.json +21 -21
  10. package/lib/commonjs/i18n/tr.json +21 -21
  11. package/lib/commonjs/store/apis/getChannelMessages.js +8 -5
  12. package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
  13. package/lib/commonjs/utils/utils.js +6 -1
  14. package/lib/commonjs/utils/utils.js.map +1 -1
  15. package/lib/commonjs/version.json +1 -1
  16. package/lib/module/components/Message/Message.js +10 -7
  17. package/lib/module/components/Message/Message.js.map +1 -1
  18. package/lib/module/components/Message/MessageSimple/MessageStatus.js +9 -9
  19. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  20. package/lib/module/i18n/fr.json +21 -21
  21. package/lib/module/i18n/hi.json +21 -21
  22. package/lib/module/i18n/it.json +21 -21
  23. package/lib/module/i18n/nl.json +21 -21
  24. package/lib/module/i18n/ru.json +21 -21
  25. package/lib/module/i18n/tr.json +21 -21
  26. package/lib/module/store/apis/getChannelMessages.js +8 -5
  27. package/lib/module/store/apis/getChannelMessages.js.map +1 -1
  28. package/lib/module/utils/utils.js +6 -1
  29. package/lib/module/utils/utils.js.map +1 -1
  30. package/lib/module/version.json +1 -1
  31. package/lib/typescript/i18n/fr.json +21 -21
  32. package/lib/typescript/i18n/hi.json +21 -21
  33. package/lib/typescript/i18n/it.json +21 -21
  34. package/lib/typescript/i18n/nl.json +21 -21
  35. package/lib/typescript/i18n/ru.json +21 -21
  36. package/lib/typescript/i18n/tr.json +21 -21
  37. package/lib/typescript/utils/utils.d.ts +3 -0
  38. package/package.json +1 -1
  39. package/src/components/Message/Message.tsx +5 -2
  40. package/src/components/Message/MessageSimple/MessageStatus.tsx +7 -5
  41. package/src/i18n/fr.json +21 -21
  42. package/src/i18n/hi.json +21 -21
  43. package/src/i18n/it.json +21 -21
  44. package/src/i18n/nl.json +21 -21
  45. package/src/i18n/ru.json +21 -21
  46. package/src/i18n/tr.json +21 -21
  47. package/src/store/apis/getChannelMessages.ts +10 -7
  48. package/src/utils/utils.ts +12 -0
  49. package/src/version.json +1 -1
@@ -1,8 +1,8 @@
1
1
  {
2
- "1 Reply": "",
2
+ "1 Reply": "1 Risposta",
3
3
  "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
4
+ "Allow access to your Gallery": "Consenti l'accesso alla tua galleria",
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
7
  "Are you sure you want to permanently delete this message?": "",
8
8
  "Block User": "",
@@ -11,65 +11,65 @@
11
11
  "Copy Message": "",
12
12
  "Delete": "",
13
13
  "Delete Message": "",
14
- "Device camera is used to take photos or videos.": "",
14
+ "Device camera is used to take photos or videos.": "La fotocamera del dispositivo viene utilizzata per scattare foto o video.",
15
15
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
16
  "Edit Message": "",
17
- "Editing Message": "",
17
+ "Editing Message": "Modificando il Messaggio",
18
18
  "Emoji matching": "",
19
19
  "Empty message...": "",
20
20
  "Error loading": "",
21
21
  "Error loading channel list...": "",
22
22
  "Error loading messages for this channel...": "",
23
23
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "",
24
+ "File type not supported": "Tipo di file non supportato",
25
25
  "Flag": "",
26
26
  "Flag Message": "",
27
27
  "Flag action failed either due to a network issue or the message is already flagged": "",
28
28
  "How about sending your first message to a friend?": "",
29
29
  "Instant Commands": "",
30
30
  "Let's start chatting!": "",
31
- "Links are disabled": "I link sono disabilitati",
31
+ "Links are disabled": "",
32
32
  "Loading channels...": "",
33
33
  "Loading messages...": "",
34
34
  "Loading...": "",
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.",
36
- "Message Reactions": "",
35
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
+ "Message Reactions": "Reazioni ai Messaggi",
37
37
  "Message deleted": "",
38
38
  "Message flagged": "",
39
39
  "Mute User": "",
40
40
  "Not supported": "",
41
41
  "Nothing yet...": "",
42
42
  "Ok": "",
43
- "Only visible to you": "Visibile solo a te",
44
- "Open Settings": "",
45
- "Photo": "",
46
- "Photos and Videos": "",
43
+ "Only visible to you": "",
44
+ "Open Settings": "Apri Impostazioni",
45
+ "Photo": "Foto",
46
+ "Photos and Videos": "Foto e Video",
47
47
  "Pin to Conversation": "",
48
48
  "Pinned by": "",
49
- "Please enable access to your photos and videos so you can share them.": "",
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
50
  "Please select a channel first": "",
51
51
  "Reconnecting...": "",
52
52
  "Reply": "",
53
53
  "Reply to Message": "Rispondi al messaggio",
54
54
  "Resend": "",
55
55
  "Search GIFs": "Cerca GIF",
56
- "Select More Photos": "",
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
60
  "The message has been reported to a moderator.": "",
61
61
  "Thread Reply": "",
62
62
  "Unblock User": "",
63
- "Unknown User": "",
63
+ "Unknown User": "Utente sconosciuto",
64
64
  "Unmute User": "",
65
65
  "Unpin from Conversation": "",
66
- "Unread Messages": "",
67
- "Video": "",
66
+ "Unread Messages": "Messaggi non letti",
67
+ "Video": "Video",
68
68
  "You": "",
69
69
  "You can't send messages in this channel": "",
70
70
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "",
72
- "{{ replyCount }} Replies": "",
71
+ "{{ index }} of {{ photoLength }}": "{{ index }} di {{ photoLength }}",
72
+ "{{ replyCount }} Replies": "{{ replyCount }} Risposte",
73
73
  "{{ replyCount }} Thread Replies": "",
74
74
  "{{ user }} is typing": "",
75
75
  "🏙 Attachment...": ""
@@ -1,8 +1,8 @@
1
1
  {
2
- "1 Reply": "",
2
+ "1 Reply": "1 Antwoord",
3
3
  "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
4
+ "Allow access to your Gallery": "Geef toegang tot uw galerij",
5
+ "Allow camera access in device settings": "Sta cameratoegang toe in de apparaatinstellingen",
6
6
  "Also send to channel": "Stuur ook naar kanaal",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
8
  "Block User": "",
@@ -11,65 +11,65 @@
11
11
  "Copy Message": "",
12
12
  "Delete": "",
13
13
  "Delete Message": "",
14
- "Device camera is used to take photos or videos.": "",
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
15
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
16
  "Edit Message": "",
17
- "Editing Message": "",
17
+ "Editing Message": "Bericht aanpassen",
18
18
  "Emoji matching": "",
19
19
  "Empty message...": "",
20
20
  "Error loading": "",
21
21
  "Error loading channel list...": "",
22
22
  "Error loading messages for this channel...": "",
23
23
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "",
24
+ "File type not supported": "Bestandstype niet ondersteund",
25
25
  "Flag": "",
26
26
  "Flag Message": "",
27
27
  "Flag action failed either due to a network issue or the message is already flagged": "",
28
28
  "How about sending your first message to a friend?": "",
29
29
  "Instant Commands": "",
30
30
  "Let's start chatting!": "",
31
- "Links are disabled": "Het versturen van links staat uit",
31
+ "Links are disabled": "",
32
32
  "Loading channels...": "",
33
33
  "Loading messages...": "",
34
34
  "Loading...": "",
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.",
36
- "Message Reactions": "",
35
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
+ "Message Reactions": "Bericht Reacties",
37
37
  "Message deleted": "",
38
38
  "Message flagged": "",
39
39
  "Mute User": "",
40
40
  "Not supported": "",
41
41
  "Nothing yet...": "",
42
42
  "Ok": "",
43
- "Only visible to you": "Alleen zichtbaar voor jou",
44
- "Open Settings": "",
45
- "Photo": "",
46
- "Photos and Videos": "",
43
+ "Only visible to you": "",
44
+ "Open Settings": "Open instellingen",
45
+ "Photo": "Foto",
46
+ "Photos and Videos": "Foto's en video's",
47
47
  "Pin to Conversation": "",
48
48
  "Pinned by": "",
49
- "Please enable access to your photos and videos so you can share them.": "",
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
50
  "Please select a channel first": "",
51
51
  "Reconnecting...": "",
52
52
  "Reply": "",
53
53
  "Reply to Message": "Beantwoord bericht",
54
54
  "Resend": "",
55
55
  "Search GIFs": "Zoek GIF's",
56
- "Select More Photos": "",
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
60
  "The message has been reported to a moderator.": "",
61
61
  "Thread Reply": "",
62
62
  "Unblock User": "",
63
- "Unknown User": "",
63
+ "Unknown User": "Onbekende gebruiker",
64
64
  "Unmute User": "",
65
65
  "Unpin from Conversation": "",
66
- "Unread Messages": "",
67
- "Video": "",
66
+ "Unread Messages": "Ongelezen Berichten",
67
+ "Video": "Video",
68
68
  "You": "",
69
69
  "You can't send messages in this channel": "",
70
70
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "",
72
- "{{ replyCount }} Replies": "",
71
+ "{{ index }} of {{ photoLength }}": "{{ index }} van {{ photoLength }}",
72
+ "{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
73
73
  "{{ replyCount }} Thread Replies": "",
74
74
  "{{ user }} is typing": "",
75
75
  "🏙 Attachment...": ""
@@ -1,8 +1,8 @@
1
1
  {
2
- "1 Reply": "",
2
+ "1 Reply": "1 Ответ",
3
3
  "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
4
+ "Allow access to your Gallery": "Разрешить доступ к вашей галерее",
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
8
  "Block User": "",
@@ -11,65 +11,65 @@
11
11
  "Copy Message": "",
12
12
  "Delete": "",
13
13
  "Delete Message": "",
14
- "Device camera is used to take photos or videos.": "",
14
+ "Device camera is used to take photos or videos.": "Камера устройства используется для съемки фотографий или видео.",
15
15
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
16
  "Edit Message": "",
17
- "Editing Message": "",
17
+ "Editing Message": "Редактирование сообщения",
18
18
  "Emoji matching": "",
19
19
  "Empty message...": "",
20
20
  "Error loading": "",
21
21
  "Error loading channel list...": "",
22
22
  "Error loading messages for this channel...": "",
23
23
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "",
24
+ "File type not supported": "Тип файла не поддерживается",
25
25
  "Flag": "",
26
26
  "Flag Message": "",
27
27
  "Flag action failed either due to a network issue or the message is already flagged": "",
28
28
  "How about sending your first message to a friend?": "",
29
29
  "Instant Commands": "",
30
30
  "Let's start chatting!": "",
31
- "Links are disabled": "Ссылки отключены",
31
+ "Links are disabled": "",
32
32
  "Loading channels...": "",
33
33
  "Loading messages...": "",
34
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}} МБ.",
36
- "Message Reactions": "",
35
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
+ "Message Reactions": "Сообщения Реакции",
37
37
  "Message deleted": "",
38
38
  "Message flagged": "",
39
39
  "Mute User": "",
40
40
  "Not supported": "",
41
41
  "Nothing yet...": "",
42
42
  "Ok": "",
43
- "Only visible to you": "Видно только вам",
44
- "Open Settings": "",
45
- "Photo": "",
46
- "Photos and Videos": "",
43
+ "Only visible to you": "",
44
+ "Open Settings": "Открыть настройки",
45
+ "Photo": "Фото",
46
+ "Photos and Videos": "Фото и видео",
47
47
  "Pin to Conversation": "",
48
48
  "Pinned by": "",
49
- "Please enable access to your photos and videos so you can share them.": "",
49
+ "Please enable access to your photos and videos so you can share them.": "Разрешите доступ к своим фотографиям и видео, чтобы вы могли ими поделиться.",
50
50
  "Please select a channel first": "",
51
51
  "Reconnecting...": "",
52
52
  "Reply": "",
53
53
  "Reply to Message": "Ответить на сообщение",
54
54
  "Resend": "",
55
55
  "Search GIFs": "Поиск GIF",
56
- "Select More Photos": "",
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
60
  "The message has been reported to a moderator.": "",
61
61
  "Thread Reply": "",
62
62
  "Unblock User": "",
63
- "Unknown User": "",
63
+ "Unknown User": "Неизвестный пользователь",
64
64
  "Unmute User": "",
65
65
  "Unpin from Conversation": "",
66
- "Unread Messages": "",
67
- "Video": "",
66
+ "Unread Messages": "Непрочитанные Сообщения",
67
+ "Video": "видео",
68
68
  "You": "",
69
69
  "You can't send messages in this channel": "",
70
70
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "",
72
- "{{ replyCount }} Replies": "",
71
+ "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
72
+ "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
73
73
  "{{ replyCount }} Thread Replies": "",
74
74
  "{{ user }} is typing": "",
75
75
  "🏙 Attachment...": ""
@@ -1,8 +1,8 @@
1
1
  {
2
- "1 Reply": "",
2
+ "1 Reply": "1 Cevap",
3
3
  "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
4
+ "Allow access to your Gallery": "Galerinize erişime izin verin",
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
7
  "Are you sure you want to permanently delete this message?": "",
8
8
  "Block User": "",
@@ -11,65 +11,65 @@
11
11
  "Copy Message": "",
12
12
  "Delete": "",
13
13
  "Delete Message": "",
14
- "Device camera is used to take photos or videos.": "",
14
+ "Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
15
15
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
16
  "Edit Message": "",
17
- "Editing Message": "",
17
+ "Editing Message": "Mesaj Düzenleniyor",
18
18
  "Emoji matching": "",
19
19
  "Empty message...": "",
20
20
  "Error loading": "",
21
21
  "Error loading channel list...": "",
22
22
  "Error loading messages for this channel...": "",
23
23
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "",
24
+ "File type not supported": "Dosya türü desteklenmiyor",
25
25
  "Flag": "",
26
26
  "Flag Message": "",
27
27
  "Flag action failed either due to a network issue or the message is already flagged": "",
28
28
  "How about sending your first message to a friend?": "",
29
29
  "Instant Commands": "",
30
30
  "Let's start chatting!": "",
31
- "Links are disabled": "Bağlantılar devre dışı",
31
+ "Links are disabled": "",
32
32
  "Loading channels...": "",
33
33
  "Loading messages...": "",
34
34
  "Loading...": "",
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.",
36
- "Message Reactions": "",
35
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
+ "Message Reactions": "Mesaj Tepkileri",
37
37
  "Message deleted": "",
38
38
  "Message flagged": "",
39
39
  "Mute User": "",
40
40
  "Not supported": "",
41
41
  "Nothing yet...": "",
42
42
  "Ok": "",
43
- "Only visible to you": "Sadece siz görebilirsiniz",
44
- "Open Settings": "",
45
- "Photo": "",
46
- "Photos and Videos": "",
43
+ "Only visible to you": "",
44
+ "Open Settings": "Ayarları aç",
45
+ "Photo": "Fotoğraf",
46
+ "Photos and Videos": "Fotoğraflar ve Videolar",
47
47
  "Pin to Conversation": "",
48
48
  "Pinned by": "",
49
- "Please enable access to your photos and videos so you can share them.": "",
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
50
  "Please select a channel first": "",
51
51
  "Reconnecting...": "",
52
52
  "Reply": "",
53
53
  "Reply to Message": "Mesajı Yanıtla",
54
54
  "Resend": "",
55
55
  "Search GIFs": "GIF Ara",
56
- "Select More Photos": "",
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
60
  "The message has been reported to a moderator.": "",
61
61
  "Thread Reply": "",
62
62
  "Unblock User": "",
63
- "Unknown User": "",
63
+ "Unknown User": "Bilinmeyen kullanıcı",
64
64
  "Unmute User": "",
65
65
  "Unpin from Conversation": "",
66
- "Unread Messages": "",
67
- "Video": "",
66
+ "Unread Messages": "Okunmamış Mesajlar",
67
+ "Video": "Video",
68
68
  "You": "",
69
69
  "You can't send messages in this channel": "",
70
70
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "",
72
- "{{ replyCount }} Replies": "",
71
+ "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
72
+ "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
73
73
  "{{ replyCount }} Thread Replies": "",
74
74
  "{{ user }} is typing": "",
75
75
  "🏙 Attachment...": ""
@@ -1,10 +1,12 @@
1
1
  import type React from 'react';
2
2
  import type { DebouncedFunc } from 'lodash';
3
3
  import type { Channel, CommandResponse, FormatMessageResponse, StreamChat } from 'stream-chat';
4
+ import type { MessageType } from '../components/MessageList/hooks/useMessageList';
4
5
  import type { MentionAllAppUsersQuery } from '../contexts/messageInputContext/MessageInputContext';
5
6
  import type { SuggestionCommand, SuggestionComponentType, SuggestionUser } from '../contexts/suggestionsContext/SuggestionsContext';
6
7
  import { Emoji } from '../emoji-data/compiled';
7
8
  import type { IconProps } from '../icons/utils/base';
9
+ import type { TableRowJoinedUser } from '../store/types';
8
10
  import type { DefaultStreamChatGenerics, ValueOf } from '../types/types';
9
11
  export declare type ReactionData = {
10
12
  Icon: React.FC<IconProps>;
@@ -31,6 +33,7 @@ export declare const MessageStatusTypes: {
31
33
  export declare type FileStateValue = typeof FileState[keyof typeof FileState];
32
34
  declare type Progress = ValueOf<typeof ProgressIndicatorTypes>;
33
35
  export declare const getIndicatorTypeForFileState: (fileState: FileStateValue, enableOfflineSupport: boolean) => Progress | null;
36
+ export declare const isBlockedMessage: <StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message: TableRowJoinedUser<"messages"> | MessageType<StreamChatGenerics>) => boolean | "" | undefined;
34
37
  export declare const queryMembersDebounced: DebouncedFunc<(<StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(channel: Channel<StreamChatGenerics>, query: SuggestionUser<StreamChatGenerics>["name"], onReady?: ((users: SuggestionUser<StreamChatGenerics>[]) => void) | undefined, options?: {
35
38
  limit?: number;
36
39
  }) => Promise<void>)>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native-core",
3
3
  "description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4
- "version": "5.23.3-beta.1",
4
+ "version": "5.24.0-beta.1",
5
5
  "author": {
6
6
  "company": "Stream.io Inc",
7
7
  "name": "Stream.io Inc"
@@ -44,7 +44,7 @@ import {
44
44
 
45
45
  import { isVideoPackageAvailable, triggerHaptic } from '../../native';
46
46
  import type { DefaultStreamChatGenerics } from '../../types/types';
47
- import { hasOnlyEmojis, MessageStatusTypes } from '../../utils/utils';
47
+ import { hasOnlyEmojis, isBlockedMessage, MessageStatusTypes } from '../../utils/utils';
48
48
 
49
49
  import {
50
50
  isMessageWithStylesReadByAndDateSeparator,
@@ -319,6 +319,9 @@ const MessageWithContext = <
319
319
  }
320
320
  const quotedMessage = message.quoted_message as MessageType<StreamChatGenerics>;
321
321
  if (error) {
322
+ if (isBlockedMessage(message)) {
323
+ return;
324
+ }
322
325
  showMessageOverlay(false, true);
323
326
  } else if (quotedMessage) {
324
327
  onPressQuotedMessage(quotedMessage);
@@ -598,7 +601,7 @@ const MessageWithContext = <
598
601
  };
599
602
 
600
603
  const onLongPressMessage =
601
- disabled || hasAttachmentActions
604
+ disabled || hasAttachmentActions || isBlockedMessage(message)
602
605
  ? () => null
603
606
  : onLongPressMessageProp
604
607
  ? (payload?: TouchableHandlerPayload) =>
@@ -69,11 +69,13 @@ const MessageStatusWithContext = <
69
69
  {message.readBy}
70
70
  </Text>
71
71
  ) : null}
72
- {typeof message.readBy === 'number' || message.readBy === true ? (
73
- <CheckAll pathFill={accent_blue} {...checkAllIcon} />
74
- ) : (
75
- <Check pathFill={grey_dark} {...checkIcon} />
76
- )}
72
+ {message.type !== 'error' ? (
73
+ typeof message.readBy === 'number' || message.readBy === true ? (
74
+ <CheckAll pathFill={accent_blue} {...checkAllIcon} />
75
+ ) : (
76
+ <Check pathFill={grey_dark} {...checkIcon} />
77
+ )
78
+ ) : null}
77
79
  </View>
78
80
  );
79
81
  }
package/src/i18n/fr.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "1 Reply": "",
2
+ "1 Reply": "1 Réponse",
3
3
  "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
4
+ "Allow access to your Gallery": "Autoriser l'accès à votre galerie",
5
+ "Allow camera access in device settings": "Autoriser l'accès à la caméra dans les paramètres de l'appareil",
6
6
  "Also send to channel": "Envoyer également à la chaîne",
7
7
  "Are you sure you want to permanently delete this message?": "",
8
8
  "Block User": "",
@@ -11,65 +11,65 @@
11
11
  "Copy Message": "",
12
12
  "Delete": "",
13
13
  "Delete Message": "",
14
- "Device camera is used to take photos or videos.": "",
14
+ "Device camera is used to take photos or videos.": "L'appareil photo de l'appareil est utilisé pour prendre des photos ou des vidéos.",
15
15
  "Do you want to send a copy of this message to a moderator for further investigation?": "",
16
16
  "Edit Message": "",
17
- "Editing Message": "",
17
+ "Editing Message": "Édite un message",
18
18
  "Emoji matching": "",
19
19
  "Empty message...": "",
20
20
  "Error loading": "",
21
21
  "Error loading channel list...": "",
22
22
  "Error loading messages for this channel...": "",
23
23
  "Error while loading, please reload/refresh": "",
24
- "File type not supported": "",
24
+ "File type not supported": "Le type de fichier n'est pas pris en charge",
25
25
  "Flag": "",
26
26
  "Flag Message": "",
27
27
  "Flag action failed either due to a network issue or the message is already flagged": "",
28
28
  "How about sending your first message to a friend?": "",
29
29
  "Instant Commands": "",
30
30
  "Let's start chatting!": "",
31
- "Links are disabled": "Links are disabled",
31
+ "Links are disabled": "",
32
32
  "Loading channels...": "",
33
33
  "Loading messages...": "",
34
34
  "Loading...": "",
35
- "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "Taille maximale de téléchargement de fichier atteinte. Veuillez télécharger un fichier inférieur à {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} Mo.",
36
- "Message Reactions": "",
35
+ "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
36
+ "Message Reactions": "Réactions aux messages",
37
37
  "Message deleted": "",
38
38
  "Message flagged": "",
39
39
  "Mute User": "",
40
40
  "Not supported": "",
41
41
  "Nothing yet...": "",
42
42
  "Ok": "",
43
- "Only visible to you": "Seulement visible par vous",
44
- "Open Settings": "",
45
- "Photo": "",
46
- "Photos and Videos": "",
43
+ "Only visible to you": "",
44
+ "Open Settings": "Ouvrir les paramètres",
45
+ "Photo": "Photo",
46
+ "Photos and Videos": "Photos et vidéos",
47
47
  "Pin to Conversation": "",
48
48
  "Pinned by": "",
49
- "Please enable access to your photos and videos so you can share them.": "",
49
+ "Please enable access to your photos and videos so you can share them.": "Veuillez autoriser l'accès à vos photos et vidéos afin de pouvoir les partager.",
50
50
  "Please select a channel first": "",
51
51
  "Reconnecting...": "",
52
52
  "Reply": "",
53
53
  "Reply to Message": "Répondre au message",
54
54
  "Resend": "",
55
55
  "Search GIFs": "Rechercher des GIF",
56
- "Select More Photos": "",
56
+ "Select More Photos": "Sélectionner plus de photos",
57
57
  "Send a message": "Envoyer un message",
58
- "Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
58
+ "Sending links is not allowed in this conversation": "",
59
59
  "Slow mode ON": "Mode lent activé",
60
60
  "The message has been reported to a moderator.": "",
61
61
  "Thread Reply": "",
62
62
  "Unblock User": "",
63
- "Unknown User": "",
63
+ "Unknown User": "Utilisateur inconnu",
64
64
  "Unmute User": "",
65
65
  "Unpin from Conversation": "",
66
- "Unread Messages": "",
67
- "Video": "",
66
+ "Unread Messages": "Messages non lus",
67
+ "Video": "Vidéo",
68
68
  "You": "",
69
69
  "You can't send messages in this channel": "",
70
70
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
71
- "{{ index }} of {{ photoLength }}": "",
72
- "{{ replyCount }} Replies": "",
71
+ "{{ index }} of {{ photoLength }}": "{{ index }} sur {{ photoLength }}",
72
+ "{{ replyCount }} Replies": "{{ replyCount }} Réponses",
73
73
  "{{ replyCount }} Thread Replies": "",
74
74
  "{{ user }} is typing": "",
75
75
  "🏙 Attachment...": ""