stream-chat-react-native-core 5.27.0-beta.7 → 5.27.0-beta.9
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/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +30 -5
- package/lib/commonjs/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +22 -21
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/i18n/es.json +25 -25
- package/lib/commonjs/i18n/fr.json +25 -25
- package/lib/commonjs/i18n/he.json +25 -25
- package/lib/commonjs/i18n/hi.json +25 -25
- package/lib/commonjs/i18n/it.json +25 -25
- package/lib/commonjs/i18n/ja.json +25 -25
- package/lib/commonjs/i18n/ko.json +25 -25
- package/lib/commonjs/i18n/nl.json +25 -25
- package/lib/commonjs/i18n/pt-BR.json +25 -25
- package/lib/commonjs/i18n/ru.json +25 -25
- package/lib/commonjs/i18n/tr.json +25 -25
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js +30 -5
- package/lib/module/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +22 -21
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/i18n/es.json +25 -25
- package/lib/module/i18n/fr.json +25 -25
- package/lib/module/i18n/he.json +25 -25
- package/lib/module/i18n/hi.json +25 -25
- package/lib/module/i18n/it.json +25 -25
- package/lib/module/i18n/ja.json +25 -25
- package/lib/module/i18n/ko.json +25 -25
- package/lib/module/i18n/nl.json +25 -25
- package/lib/module/i18n/pt-BR.json +25 -25
- package/lib/module/i18n/ru.json +25 -25
- package/lib/module/i18n/tr.json +25 -25
- package/lib/module/version.json +1 -1
- package/lib/typescript/i18n/es.json +25 -25
- package/lib/typescript/i18n/fr.json +25 -25
- package/lib/typescript/i18n/he.json +25 -25
- package/lib/typescript/i18n/hi.json +25 -25
- package/lib/typescript/i18n/it.json +25 -25
- package/lib/typescript/i18n/ja.json +25 -25
- package/lib/typescript/i18n/ko.json +25 -25
- package/lib/typescript/i18n/nl.json +25 -25
- package/lib/typescript/i18n/pt-BR.json +25 -25
- package/lib/typescript/i18n/ru.json +25 -25
- package/lib/typescript/i18n/tr.json +25 -25
- package/package.json +1 -1
- package/src/components/AttachmentPicker/components/AttachmentPickerIOSSelectMorePhotos.tsx +24 -2
- package/src/components/MessageList/MessageList.tsx +4 -2
- package/src/i18n/es.json +25 -25
- package/src/i18n/fr.json +25 -25
- package/src/i18n/he.json +25 -25
- package/src/i18n/hi.json +25 -25
- package/src/i18n/it.json +25 -25
- package/src/i18n/ja.json +25 -25
- package/src/i18n/ko.json +25 -25
- package/src/i18n/nl.json +25 -25
- package/src/i18n/pt-BR.json +25 -25
- package/src/i18n/ru.json +25 -25
- package/src/i18n/tr.json +25 -25
- package/src/version.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
3
|
-
"1 Thread Reply": "
|
|
2
|
+
"1 Reply": "",
|
|
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,47 +18,47 @@
|
|
|
18
18
|
"Edit Message": "",
|
|
19
19
|
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "Correspondência de Emoji",
|
|
21
|
-
"Empty message...": "
|
|
21
|
+
"Empty message...": "",
|
|
22
22
|
"Error loading": "Erro ao carregar",
|
|
23
|
-
"Error loading channel list...": "
|
|
23
|
+
"Error loading channel list...": "",
|
|
24
24
|
"Error loading messages for this channel...": "Erro ao carregar mensagens para este canal...",
|
|
25
|
-
"Error while loading, please reload/refresh": "
|
|
26
|
-
"File type not supported": "",
|
|
25
|
+
"Error while loading, please reload/refresh": "",
|
|
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": "Comandos Instantâneos",
|
|
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": "
|
|
32
|
+
"Let's start chatting!": "",
|
|
33
|
+
"Links are disabled": "Links estão desabilitados",
|
|
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.": "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": "",
|
|
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
52
|
"Please select a channel first": "Por favor, selecione um canal primeiro",
|
|
53
53
|
"Reconnecting...": "Reconectando...",
|
|
54
54
|
"Reply": "",
|
|
55
|
-
"Reply to Message": "
|
|
55
|
+
"Reply to Message": "",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "
|
|
59
|
+
"Send Anyway": "",
|
|
60
60
|
"Send a message": "",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
61
|
+
"Sending links is not allowed in this conversation": "Não é permitido enviar links nesta conversa",
|
|
62
62
|
"Slow mode ON": "",
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "
|
|
76
|
-
"{{ replyCount }} Thread Replies": "
|
|
75
|
+
"{{ replyCount }} Replies": "",
|
|
76
|
+
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "",
|
|
78
|
-
"🏙 Attachment...": "
|
|
78
|
+
"🏙 Attachment...": ""
|
|
79
79
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
3
|
-
"1 Thread Reply": "
|
|
2
|
+
"1 Reply": "",
|
|
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,47 +18,47 @@
|
|
|
18
18
|
"Edit Message": "",
|
|
19
19
|
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "Соответствие эмодзи",
|
|
21
|
-
"Empty message...": "
|
|
21
|
+
"Empty message...": "",
|
|
22
22
|
"Error loading": "Ошибка при загрузке",
|
|
23
|
-
"Error loading channel list...": "
|
|
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": "",
|
|
25
|
+
"Error while loading, please reload/refresh": "",
|
|
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": "",
|
|
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": "
|
|
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
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
52
|
"Please select a channel first": "Пожалуйста, сначала выберите канал",
|
|
53
53
|
"Reconnecting...": "Переподключение...",
|
|
54
54
|
"Reply": "",
|
|
55
|
-
"Reply to Message": "
|
|
55
|
+
"Reply to Message": "",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "
|
|
59
|
+
"Send Anyway": "",
|
|
60
60
|
"Send a message": "",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
61
|
+
"Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
|
|
62
62
|
"Slow mode ON": "",
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "
|
|
76
|
-
"{{ replyCount }} Thread Replies": "
|
|
75
|
+
"{{ replyCount }} Replies": "",
|
|
76
|
+
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "",
|
|
78
|
-
"🏙 Attachment...": "
|
|
78
|
+
"🏙 Attachment...": ""
|
|
79
79
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
3
|
-
"1 Thread Reply": "
|
|
2
|
+
"1 Reply": "",
|
|
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,47 +18,47 @@
|
|
|
18
18
|
"Edit Message": "",
|
|
19
19
|
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "Emoji eşleştirme",
|
|
21
|
-
"Empty message...": "
|
|
21
|
+
"Empty message...": "",
|
|
22
22
|
"Error loading": "Yükleme hatası",
|
|
23
|
-
"Error loading channel list...": "
|
|
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": "
|
|
26
|
-
"File type not supported": "",
|
|
25
|
+
"Error while loading, please reload/refresh": "",
|
|
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": "Anlık Komutlar",
|
|
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": "
|
|
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
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": "",
|
|
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
52
|
"Please select a channel first": "Lütfen önce bir kanal seçiniz",
|
|
53
53
|
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
54
54
|
"Reply": "",
|
|
55
|
-
"Reply to Message": "
|
|
55
|
+
"Reply to Message": "",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "
|
|
59
|
+
"Send Anyway": "",
|
|
60
60
|
"Send a message": "",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
61
|
+
"Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
|
|
62
62
|
"Slow mode ON": "",
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "
|
|
76
|
-
"{{ replyCount }} Thread Replies": "
|
|
75
|
+
"{{ replyCount }} Replies": "",
|
|
76
|
+
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "",
|
|
78
|
-
"🏙 Attachment...": "
|
|
78
|
+
"🏙 Attachment...": ""
|
|
79
79
|
}
|
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.27.0-beta.
|
|
4
|
+
"version": "5.27.0-beta.9",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Pressable, StyleSheet, Text } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
|
|
4
5
|
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
|
|
5
6
|
import { iOS14RefreshGallerySelection } from '../../../native';
|
|
6
7
|
|
|
7
8
|
export const AttachmentPickerIOSSelectMorePhotos = () => {
|
|
8
9
|
const { t } = useTranslationContext();
|
|
9
|
-
|
|
10
|
+
const {
|
|
11
|
+
theme: {
|
|
12
|
+
colors: { accent_blue, white },
|
|
13
|
+
},
|
|
14
|
+
} = useTheme();
|
|
15
|
+
return (
|
|
16
|
+
<Pressable
|
|
17
|
+
onPress={iOS14RefreshGallerySelection}
|
|
18
|
+
style={[styles.container, { backgroundColor: white }]}
|
|
19
|
+
>
|
|
20
|
+
<Text style={[styles.text, { color: accent_blue }]}>{t('Select More Photos')}</Text>
|
|
21
|
+
</Pressable>
|
|
22
|
+
);
|
|
10
23
|
};
|
|
24
|
+
|
|
25
|
+
const styles = StyleSheet.create({
|
|
26
|
+
container: {},
|
|
27
|
+
text: {
|
|
28
|
+
fontSize: 16,
|
|
29
|
+
paddingVertical: 10,
|
|
30
|
+
textAlign: 'center',
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -525,7 +525,7 @@ const MessageListWithContext = <
|
|
|
525
525
|
if (threadList || hasNoMoreRecentMessagesToLoad) {
|
|
526
526
|
scrollToBottomIfNeeded();
|
|
527
527
|
} else {
|
|
528
|
-
setScrollToBottomButtonVisible(
|
|
528
|
+
setScrollToBottomButtonVisible(false);
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
if (
|
|
@@ -805,13 +805,15 @@ const MessageListWithContext = <
|
|
|
805
805
|
|
|
806
806
|
const handleScroll: ScrollViewProps['onScroll'] = (event) => {
|
|
807
807
|
const offset = event.nativeEvent.contentOffset.y;
|
|
808
|
+
const messageListHasMessages = processedMessageList.length > 0;
|
|
808
809
|
// Show scrollToBottom button once scroll position goes beyond 150.
|
|
809
810
|
const isScrollAtBottom = offset <= 150;
|
|
810
811
|
|
|
811
812
|
const notLatestSet = channel.state.messages !== channel.state.latestMessages;
|
|
812
813
|
|
|
813
814
|
const showScrollToBottomButton =
|
|
814
|
-
|
|
815
|
+
messageListHasMessages &&
|
|
816
|
+
((!threadList && notLatestSet) || !isScrollAtBottom || !hasNoMoreRecentMessagesToLoad);
|
|
815
817
|
|
|
816
818
|
/**
|
|
817
819
|
* 1. If I scroll up -> show scrollToBottom button.
|
package/src/i18n/es.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
3
|
-
"1 Thread Reply": "
|
|
2
|
+
"1 Reply": "",
|
|
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,47 +18,47 @@
|
|
|
18
18
|
"Edit Message": "",
|
|
19
19
|
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "Coincidencia de emoji",
|
|
21
|
-
"Empty message...": "
|
|
21
|
+
"Empty message...": "",
|
|
22
22
|
"Error loading": "Error al cargar",
|
|
23
|
-
"Error loading channel list...": "
|
|
23
|
+
"Error loading channel list...": "",
|
|
24
24
|
"Error loading messages for this channel...": "Error al cargar los mensajes de este canal...",
|
|
25
|
-
"Error while loading, please reload/refresh": "
|
|
26
|
-
"File type not supported": "",
|
|
25
|
+
"Error while loading, please reload/refresh": "",
|
|
26
|
+
"File type not supported": "Tipo de archivo no admitido",
|
|
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": "Comandos instantáneos",
|
|
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": "
|
|
32
|
+
"Let's start chatting!": "",
|
|
33
|
+
"Links are disabled": "Los enlaces están desactivados",
|
|
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.": "El archivo supera el tamaño máximo permitido. Por favor, selecciona un archivo menor a {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.",
|
|
38
|
+
"Message Reactions": "",
|
|
39
39
|
"Message deleted": "Mensaje eliminado",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "",
|
|
43
|
-
"Nothing yet...": "
|
|
42
|
+
"Not supported": "No admitido",
|
|
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
52
|
"Please select a channel first": "Por favor, selecciona primero un canal",
|
|
53
53
|
"Reconnecting...": "Reconectando...",
|
|
54
54
|
"Reply": "",
|
|
55
|
-
"Reply to Message": "
|
|
55
|
+
"Reply to Message": "",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "
|
|
59
|
+
"Send Anyway": "",
|
|
60
60
|
"Send a message": "",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
61
|
+
"Sending links is not allowed in this conversation": "No está permitido enviar enlaces en esta conversación",
|
|
62
62
|
"Slow mode ON": "",
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "
|
|
76
|
-
"{{ replyCount }} Thread Replies": "
|
|
75
|
+
"{{ replyCount }} Replies": "",
|
|
76
|
+
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "",
|
|
78
|
-
"🏙 Attachment...": "
|
|
78
|
+
"🏙 Attachment...": ""
|
|
79
79
|
}
|
package/src/i18n/fr.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "
|
|
3
|
-
"1 Thread Reply": "
|
|
2
|
+
"1 Reply": "",
|
|
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,47 +18,47 @@
|
|
|
18
18
|
"Edit Message": "",
|
|
19
19
|
"Editing Message": "",
|
|
20
20
|
"Emoji matching": "Correspondance Emoji",
|
|
21
|
-
"Empty message...": "
|
|
21
|
+
"Empty message...": "",
|
|
22
22
|
"Error loading": "Erreur lors du chargement",
|
|
23
|
-
"Error loading channel list...": "
|
|
23
|
+
"Error loading channel list...": "",
|
|
24
24
|
"Error loading messages for this channel...": "Erreur lors du chargement des messages de ce canal...",
|
|
25
|
-
"Error while loading, please reload/refresh": "
|
|
26
|
-
"File type not supported": "",
|
|
25
|
+
"Error while loading, please reload/refresh": "",
|
|
26
|
+
"File type not supported": "Le type de fichier n'est pas pris en charge",
|
|
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": "Commandes Instantanées",
|
|
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": "
|
|
32
|
+
"Let's start chatting!": "",
|
|
33
|
+
"Links are disabled": "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.": "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.",
|
|
38
|
+
"Message Reactions": "",
|
|
39
39
|
"Message deleted": "Message supprimé",
|
|
40
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
|
-
"Not supported": "",
|
|
43
|
-
"Nothing yet...": "
|
|
42
|
+
"Not supported": "Non pris en charge",
|
|
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
52
|
"Please select a channel first": "Veuillez d'abord selectionnez un canal",
|
|
53
53
|
"Reconnecting...": "Se Reconnecter...",
|
|
54
54
|
"Reply": "",
|
|
55
|
-
"Reply to Message": "
|
|
55
|
+
"Reply to Message": "",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
58
|
"Select More Photos": "",
|
|
59
|
-
"Send Anyway": "
|
|
59
|
+
"Send Anyway": "",
|
|
60
60
|
"Send a message": "",
|
|
61
|
-
"Sending links is not allowed in this conversation": "",
|
|
61
|
+
"Sending links is not allowed in this conversation": "Sending links is not allowed in this conversation",
|
|
62
62
|
"Slow mode ON": "",
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
74
74
|
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "
|
|
76
|
-
"{{ replyCount }} Thread Replies": "
|
|
75
|
+
"{{ replyCount }} Replies": "",
|
|
76
|
+
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "",
|
|
78
|
-
"🏙 Attachment...": "
|
|
78
|
+
"🏙 Attachment...": ""
|
|
79
79
|
}
|