stream-chat-react-native-core 5.23.2-beta.1 → 5.23.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.
- package/lib/commonjs/components/Channel/Channel.js +33 -32
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/MessageInput/MessageInput.js +28 -26
- package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +41 -43
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js +1 -2
- package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/fr.json +63 -63
- package/lib/commonjs/i18n/hi.json +63 -63
- package/lib/commonjs/i18n/it.json +63 -63
- package/lib/commonjs/i18n/nl.json +63 -63
- package/lib/commonjs/i18n/ru.json +63 -63
- package/lib/commonjs/i18n/tr.json +63 -63
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/Channel.js +33 -32
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/MessageInput/MessageInput.js +28 -26
- package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +41 -43
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/components/MessageList/hooks/useMessageList.js +1 -2
- package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/fr.json +63 -63
- package/lib/module/i18n/hi.json +63 -63
- package/lib/module/i18n/it.json +63 -63
- package/lib/module/i18n/nl.json +63 -63
- package/lib/module/i18n/ru.json +63 -63
- package/lib/module/i18n/tr.json +63 -63
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -3
- package/lib/typescript/components/MessageList/MessageList.d.ts +1 -5
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/fr.json +63 -63
- package/lib/typescript/i18n/hi.json +63 -63
- package/lib/typescript/i18n/it.json +63 -63
- package/lib/typescript/i18n/nl.json +63 -63
- package/lib/typescript/i18n/ru.json +63 -63
- package/lib/typescript/i18n/tr.json +63 -63
- package/package.json +1 -1
- package/src/components/Channel/Channel.tsx +22 -17
- package/src/components/MessageInput/MessageInput.tsx +12 -5
- package/src/components/MessageList/MessageList.tsx +12 -15
- package/src/components/MessageList/hooks/useMessageList.ts +2 -2
- package/src/i18n/en.json +1 -1
- package/src/i18n/fr.json +63 -63
- package/src/i18n/hi.json +63 -63
- package/src/i18n/it.json +63 -63
- package/src/i18n/nl.json +63 -63
- package/src/i18n/ru.json +63 -63
- package/src/i18n/tr.json +63 -63
- package/src/version.json +1 -1
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
2
|
+
"1 Reply": "1 Ответ",
|
|
3
3
|
"1 Thread Reply": "1 тема Ответить",
|
|
4
|
-
"Allow access to your Gallery": "",
|
|
5
|
-
"Allow camera access in device settings": "",
|
|
6
|
-
"Also send to channel": "",
|
|
7
|
-
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Block User": "",
|
|
9
|
-
"Cancel": "",
|
|
10
|
-
"Cannot Flag Message": "",
|
|
11
|
-
"Copy Message": "",
|
|
12
|
-
"Delete": "",
|
|
13
|
-
"Delete Message": "",
|
|
14
|
-
"Device camera is used to take photos or videos.": "",
|
|
15
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
16
|
-
"Edit Message": "",
|
|
17
|
-
"Editing Message": "",
|
|
4
|
+
"Allow access to your Gallery": "Разрешить доступ к вашей галерее",
|
|
5
|
+
"Allow camera access in device settings": "Разрешите доступ к камере в настройках устройства.",
|
|
6
|
+
"Also send to channel": "Также отправить на канал",
|
|
7
|
+
"Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
|
|
8
|
+
"Block User": "Заблокировать пользователя",
|
|
9
|
+
"Cancel": "Отмена",
|
|
10
|
+
"Cannot Flag Message": "Невозможно пожаловаться на сообщение",
|
|
11
|
+
"Copy Message": "Копировать сообщение",
|
|
12
|
+
"Delete": "удалять",
|
|
13
|
+
"Delete Message": "Удалить сообщение",
|
|
14
|
+
"Device camera is used to take photos or videos.": "Камера устройства используется для съемки фотографий или видео.",
|
|
15
|
+
"Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
|
|
16
|
+
"Edit Message": "Редактировать сообщение",
|
|
17
|
+
"Editing Message": "Редактирование сообщения",
|
|
18
18
|
"Emoji matching": "Соответствие эмодзи",
|
|
19
|
-
"Empty message...": "",
|
|
20
|
-
"Error loading": "",
|
|
21
|
-
"Error loading channel list...": "",
|
|
22
|
-
"Error loading messages for this channel...": "",
|
|
23
|
-
"Error while loading, please reload/refresh": "",
|
|
19
|
+
"Empty message...": "Пустое сообщение...",
|
|
20
|
+
"Error loading": "Ошибка при загрузке",
|
|
21
|
+
"Error loading channel list...": "Ошибка загрузки списка каналов...",
|
|
22
|
+
"Error loading messages for this channel...": "Ошибка загрузки сообщений для этого канала...",
|
|
23
|
+
"Error while loading, please reload/refresh": "Ошибка загрузки, пожалуйста перезагрузите или обновите",
|
|
24
24
|
"File type not supported": "Тип файла не поддерживается",
|
|
25
|
-
"Flag": "",
|
|
26
|
-
"Flag Message": "",
|
|
27
|
-
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
28
|
-
"How about sending your first message to a friend?": "",
|
|
25
|
+
"Flag": "Пометить",
|
|
26
|
+
"Flag Message": "Пометить сообщение",
|
|
27
|
+
"Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
|
|
28
|
+
"How about sending your first message to a friend?": "Как насчет отправки первого сообщения другу?",
|
|
29
29
|
"Instant Commands": "Мгновенные Команды",
|
|
30
|
-
"Let's start chatting!": "",
|
|
30
|
+
"Let's start chatting!": "Давайте начнем общаться!",
|
|
31
31
|
"Links are disabled": "Ссылки отключены",
|
|
32
|
-
"Loading channels...": "",
|
|
33
|
-
"Loading messages...": "",
|
|
34
|
-
"Loading...": "",
|
|
32
|
+
"Loading channels...": "Загружаю каналы...",
|
|
33
|
+
"Loading messages...": "Загружаю сообщения...",
|
|
34
|
+
"Loading...": "Загружаю...",
|
|
35
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": "",
|
|
37
|
-
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
40
|
-
"Not supported": "",
|
|
41
|
-
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
43
|
-
"Only visible to you": "",
|
|
44
|
-
"Open Settings": "",
|
|
45
|
-
"Photo": "",
|
|
46
|
-
"Photos and Videos": "",
|
|
47
|
-
"Pin to Conversation": "",
|
|
36
|
+
"Message Reactions": "Сообщения Реакции",
|
|
37
|
+
"Message deleted": "Сообщение удалено",
|
|
38
|
+
"Message flagged": "Сообщение отмечено",
|
|
39
|
+
"Mute User": "Отключить пользователя",
|
|
40
|
+
"Not supported": "не поддерживается",
|
|
41
|
+
"Nothing yet...": "Пока ничего нет...",
|
|
42
|
+
"Ok": "Oк",
|
|
43
|
+
"Only visible to you": "Видно только вам",
|
|
44
|
+
"Open Settings": "Открыть настройки",
|
|
45
|
+
"Photo": "Фото",
|
|
46
|
+
"Photos and Videos": "Фото и видео",
|
|
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
|
-
"Reconnecting...": "",
|
|
52
|
-
"Reply": "",
|
|
53
|
-
"Reply to Message": "",
|
|
54
|
-
"Resend": "",
|
|
55
|
-
"Search GIFs": "",
|
|
56
|
-
"Select More Photos": "",
|
|
57
|
-
"Send a message": "",
|
|
51
|
+
"Reconnecting...": "Переподключение...",
|
|
52
|
+
"Reply": "Ответить",
|
|
53
|
+
"Reply to Message": "Ответить на сообщение",
|
|
54
|
+
"Resend": "Отправить",
|
|
55
|
+
"Search GIFs": "Поиск GIF",
|
|
56
|
+
"Select More Photos": "Выбрать больше фотографий",
|
|
57
|
+
"Send a message": "Отправить сообщение",
|
|
58
58
|
"Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
|
|
59
|
-
"Slow mode ON": "",
|
|
60
|
-
"The message has been reported to a moderator.": "",
|
|
61
|
-
"Thread Reply": "",
|
|
62
|
-
"Unblock User": "",
|
|
63
|
-
"Unknown User": "",
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
66
|
-
"Unread Messages": "",
|
|
67
|
-
"Video": "",
|
|
68
|
-
"You": "",
|
|
59
|
+
"Slow mode ON": "Медленный режим включен",
|
|
60
|
+
"The message has been reported to a moderator.": "Сообщение отправлено модератору.",
|
|
61
|
+
"Thread Reply": "Тема Ответить",
|
|
62
|
+
"Unblock User": "Разблокировать пользователя",
|
|
63
|
+
"Unknown User": "Неизвестный пользователь",
|
|
64
|
+
"Unmute User": "Включить микрофон",
|
|
65
|
+
"Unpin from Conversation": "Открепить от беседы",
|
|
66
|
+
"Unread Messages": "Непрочитанные Сообщения",
|
|
67
|
+
"Video": "видео",
|
|
68
|
+
"You": "Вы",
|
|
69
69
|
"You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
|
|
70
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
71
|
-
"{{ index }} of {{ photoLength }}": "",
|
|
72
|
-
"{{ replyCount }} Replies": "",
|
|
70
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
|
|
71
|
+
"{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
|
|
72
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Ответов",
|
|
73
73
|
"{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
|
|
74
|
-
"{{ user }} is typing": "",
|
|
75
|
-
"🏙 Attachment...": ""
|
|
74
|
+
"{{ user }} is typing": "{{ user }} пишет",
|
|
75
|
+
"🏙 Attachment...": "🏙 Вложение..."
|
|
76
76
|
}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
2
|
+
"1 Reply": "1 Cevap",
|
|
3
3
|
"1 Thread Reply": "1 Konu Yanıtı",
|
|
4
|
-
"Allow access to your Gallery": "",
|
|
5
|
-
"Allow camera access in device settings": "",
|
|
6
|
-
"Also send to channel": "",
|
|
7
|
-
"Are you sure you want to permanently delete this message?": "",
|
|
8
|
-
"Block User": "",
|
|
9
|
-
"Cancel": "",
|
|
10
|
-
"Cannot Flag Message": "",
|
|
11
|
-
"Copy Message": "",
|
|
12
|
-
"Delete": "",
|
|
13
|
-
"Delete Message": "",
|
|
14
|
-
"Device camera is used to take photos or videos.": "",
|
|
15
|
-
"Do you want to send a copy of this message to a moderator for further investigation?": "",
|
|
16
|
-
"Edit Message": "",
|
|
17
|
-
"Editing Message": "",
|
|
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
|
+
"Also send to channel": "Kanala da gönder",
|
|
7
|
+
"Are you sure you want to permanently delete this message?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
|
|
8
|
+
"Block User": "Kullanıcıyı engelle",
|
|
9
|
+
"Cancel": "İptal",
|
|
10
|
+
"Cannot Flag Message": "Raporlama Başarısız",
|
|
11
|
+
"Copy Message": "Mesajı Kopyala",
|
|
12
|
+
"Delete": "Sil",
|
|
13
|
+
"Delete Message": "Mesajı Sil",
|
|
14
|
+
"Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
|
|
15
|
+
"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?",
|
|
16
|
+
"Edit Message": "Mesajı Düzenle",
|
|
17
|
+
"Editing Message": "Mesaj Düzenleniyor",
|
|
18
18
|
"Emoji matching": "Emoji eşleştirme",
|
|
19
|
-
"Empty message...": "",
|
|
20
|
-
"Error loading": "",
|
|
21
|
-
"Error loading channel list...": "",
|
|
22
|
-
"Error loading messages for this channel...": "",
|
|
23
|
-
"Error while loading, please reload/refresh": "",
|
|
19
|
+
"Empty message...": "Boş mesaj...",
|
|
20
|
+
"Error loading": "Yükleme hatası",
|
|
21
|
+
"Error loading channel list...": "Kanal listesi yüklenirken hata oluştu...",
|
|
22
|
+
"Error loading messages for this channel...": "Bu kanal için mesajlar yüklenirken hata oluştu...",
|
|
23
|
+
"Error while loading, please reload/refresh": "Yüklenirken hata oluştu, lütfen tekrar deneyiniz",
|
|
24
24
|
"File type not supported": "Dosya türü desteklenmiyor",
|
|
25
|
-
"Flag": "",
|
|
26
|
-
"Flag Message": "",
|
|
27
|
-
"Flag action failed either due to a network issue or the message is already flagged": "",
|
|
28
|
-
"How about sending your first message to a friend?": "",
|
|
25
|
+
"Flag": "Raporla",
|
|
26
|
+
"Flag Message": "Mesajı Raporla",
|
|
27
|
+
"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.",
|
|
28
|
+
"How about sending your first message to a friend?": "İlk mesajınızı bir arkadaşınıza göndermeye ne dersiniz?",
|
|
29
29
|
"Instant Commands": "Anlık Komutlar",
|
|
30
|
-
"Let's start chatting!": "",
|
|
30
|
+
"Let's start chatting!": "Haydi sohbete başlayalım!",
|
|
31
31
|
"Links are disabled": "Bağlantılar devre dışı",
|
|
32
|
-
"Loading channels...": "",
|
|
33
|
-
"Loading messages...": "",
|
|
34
|
-
"Loading...": "",
|
|
32
|
+
"Loading channels...": "Kanallar yükleniyor...",
|
|
33
|
+
"Loading messages...": "Mesajlar yükleniyor...",
|
|
34
|
+
"Loading...": "Yükleniyor...",
|
|
35
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": "",
|
|
37
|
-
"Message deleted": "",
|
|
38
|
-
"Message flagged": "",
|
|
39
|
-
"Mute User": "",
|
|
40
|
-
"Not supported": "",
|
|
41
|
-
"Nothing yet...": "",
|
|
42
|
-
"Ok": "",
|
|
43
|
-
"Only visible to you": "",
|
|
44
|
-
"Open Settings": "",
|
|
45
|
-
"Photo": "",
|
|
46
|
-
"Photos and Videos": "",
|
|
47
|
-
"Pin to Conversation": "",
|
|
36
|
+
"Message Reactions": "Mesaj Tepkileri",
|
|
37
|
+
"Message deleted": "Mesaj silindi",
|
|
38
|
+
"Message flagged": "Mesaj işaretlendi",
|
|
39
|
+
"Mute User": "Kullanıcıyı sessize al",
|
|
40
|
+
"Not supported": "Desteklenmiyor",
|
|
41
|
+
"Nothing yet...": "Henüz değil...",
|
|
42
|
+
"Ok": "Tamam",
|
|
43
|
+
"Only visible to you": "Sadece siz görebilirsiniz",
|
|
44
|
+
"Open Settings": "Ayarları aç",
|
|
45
|
+
"Photo": "Fotoğraf",
|
|
46
|
+
"Photos and Videos": "Fotoğraflar ve Videolar",
|
|
47
|
+
"Pin to Conversation": "Konuşmaya sabitle",
|
|
48
48
|
"Pinned by": "Tarafından sabitlendi",
|
|
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": "Lütfen önce bir kanal seçiniz",
|
|
51
|
-
"Reconnecting...": "",
|
|
52
|
-
"Reply": "",
|
|
53
|
-
"Reply to Message": "",
|
|
54
|
-
"Resend": "",
|
|
55
|
-
"Search GIFs": "",
|
|
56
|
-
"Select More Photos": "",
|
|
57
|
-
"Send a message": "",
|
|
51
|
+
"Reconnecting...": "Yeniden Bağlanılıyor...",
|
|
52
|
+
"Reply": "Yanıtla",
|
|
53
|
+
"Reply to Message": "Mesajı Yanıtla",
|
|
54
|
+
"Resend": "Yeniden gönder",
|
|
55
|
+
"Search GIFs": "GIF Ara",
|
|
56
|
+
"Select More Photos": "Daha Fazla Fotoğraf Seçin",
|
|
57
|
+
"Send a message": "Mesaj gönder",
|
|
58
58
|
"Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
|
|
59
|
-
"Slow mode ON": "",
|
|
60
|
-
"The message has been reported to a moderator.": "",
|
|
61
|
-
"Thread Reply": "",
|
|
62
|
-
"Unblock User": "",
|
|
63
|
-
"Unknown User": "",
|
|
64
|
-
"Unmute User": "",
|
|
65
|
-
"Unpin from Conversation": "",
|
|
66
|
-
"Unread Messages": "",
|
|
67
|
-
"Video": "",
|
|
68
|
-
"You": "",
|
|
59
|
+
"Slow mode ON": "Yavaş Mod Açık",
|
|
60
|
+
"The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
|
|
61
|
+
"Thread Reply": "Konu Yanıtı",
|
|
62
|
+
"Unblock User": "Kullanıcının engelini kaldır",
|
|
63
|
+
"Unknown User": "Bilinmeyen kullanıcı",
|
|
64
|
+
"Unmute User": "Kullanıcının sesini aç",
|
|
65
|
+
"Unpin from Conversation": "Sabitlemeyi kaldır",
|
|
66
|
+
"Unread Messages": "Okunmamış Mesajlar",
|
|
67
|
+
"Video": "Video",
|
|
68
|
+
"You": "Sen",
|
|
69
69
|
"You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
|
|
70
|
-
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
|
|
71
|
-
"{{ index }} of {{ photoLength }}": "",
|
|
72
|
-
"{{ replyCount }} Replies": "",
|
|
70
|
+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
|
|
71
|
+
"{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
|
|
72
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Cevap",
|
|
73
73
|
"{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
|
|
74
|
-
"{{ user }} is typing": "",
|
|
75
|
-
"🏙 Attachment...": ""
|
|
74
|
+
"{{ user }} is typing": "{{ user }} yazıyor",
|
|
75
|
+
"🏙 Attachment...": "🏙 Ek..."
|
|
76
76
|
}
|
|
@@ -558,14 +558,17 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
558
558
|
(0, _react.useEffect)(function () {
|
|
559
559
|
var handleEvent = function handleEvent(event) {
|
|
560
560
|
if (shouldSyncChannel) {
|
|
561
|
-
var
|
|
562
|
-
if (
|
|
563
|
-
var
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
561
|
+
var isTypingEvent = event.type === 'typing.start' || event.type === 'typing.stop';
|
|
562
|
+
if (!isTypingEvent) {
|
|
563
|
+
var _event$message;
|
|
564
|
+
if (thread != null && thread.id) {
|
|
565
|
+
var updatedThreadMessages = thread.id && channel && channel.state.threads[thread.id] || threadMessages;
|
|
566
|
+
setThreadMessages(updatedThreadMessages);
|
|
567
|
+
}
|
|
568
|
+
if (channel && thread != null && thread.id && ((_event$message = event.message) == null ? void 0 : _event$message.id) === thread.id) {
|
|
569
|
+
var updatedThread = channel.state.formatMessage(event.message);
|
|
570
|
+
setThread(updatedThread);
|
|
571
|
+
}
|
|
569
572
|
}
|
|
570
573
|
if (channel && event.type !== 'message.new' && event.type !== 'message.read' && event.type !== 'typing.start' && event.type !== 'typing.stop') {
|
|
571
574
|
copyChannelState();
|
|
@@ -911,20 +914,19 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
911
914
|
while (1) switch (_context6.prev = _context6.next) {
|
|
912
915
|
case 0:
|
|
913
916
|
if (!(!(channel != null && channel.initialized) || !channel.state.isUpToDate)) {
|
|
914
|
-
_context6.next =
|
|
917
|
+
_context6.next = 7;
|
|
915
918
|
break;
|
|
916
919
|
}
|
|
917
920
|
_context6.next = 3;
|
|
918
921
|
return channel == null ? void 0 : channel.watch();
|
|
919
922
|
case 3:
|
|
920
|
-
_context6.next = 7;
|
|
921
|
-
break;
|
|
922
|
-
case 5:
|
|
923
|
-
_context6.next = 7;
|
|
924
|
-
return loadLatestMessagesRef.current(true);
|
|
925
|
-
case 7:
|
|
926
923
|
channel == null ? void 0 : channel.state.setIsUpToDate(true);
|
|
927
924
|
setHasNoMoreRecentMessagesToLoad(true);
|
|
925
|
+
_context6.next = 9;
|
|
926
|
+
break;
|
|
927
|
+
case 7:
|
|
928
|
+
_context6.next = 9;
|
|
929
|
+
return channel.state.loadMessageIntoState('latest');
|
|
928
930
|
case 9:
|
|
929
931
|
case "end":
|
|
930
932
|
return _context6.stop();
|
|
@@ -2002,12 +2004,12 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2002
2004
|
return _ref26.apply(this, arguments);
|
|
2003
2005
|
};
|
|
2004
2006
|
}();
|
|
2005
|
-
var openThread = function
|
|
2007
|
+
var openThread = (0, _react.useCallback)(function (message) {
|
|
2006
2008
|
var _channel$state2;
|
|
2007
2009
|
var newThreadMessages = message != null && message.id ? (channel == null ? void 0 : (_channel$state2 = channel.state) == null ? void 0 : _channel$state2.threads[message.id]) || [] : [];
|
|
2008
2010
|
setThread(message);
|
|
2009
2011
|
setThreadMessages(newThreadMessages);
|
|
2010
|
-
};
|
|
2012
|
+
}, [setThread, setThreadMessages]);
|
|
2011
2013
|
var closeThread = (0, _react.useCallback)(function () {
|
|
2012
2014
|
setThread(null);
|
|
2013
2015
|
setThreadMessages([]);
|
|
@@ -2283,7 +2285,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2283
2285
|
__self: _this,
|
|
2284
2286
|
__source: {
|
|
2285
2287
|
fileName: _jsxFileName,
|
|
2286
|
-
lineNumber:
|
|
2288
|
+
lineNumber: 2290,
|
|
2287
2289
|
columnNumber: 12
|
|
2288
2290
|
}
|
|
2289
2291
|
});
|
|
@@ -2297,7 +2299,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2297
2299
|
__self: _this,
|
|
2298
2300
|
__source: {
|
|
2299
2301
|
fileName: _jsxFileName,
|
|
2300
|
-
lineNumber:
|
|
2302
|
+
lineNumber: 2295,
|
|
2301
2303
|
columnNumber: 7
|
|
2302
2304
|
}
|
|
2303
2305
|
}, t('Please select a channel first'));
|
|
@@ -2310,7 +2312,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2310
2312
|
__self: _this,
|
|
2311
2313
|
__source: {
|
|
2312
2314
|
fileName: _jsxFileName,
|
|
2313
|
-
lineNumber:
|
|
2315
|
+
lineNumber: 2302,
|
|
2314
2316
|
columnNumber: 5
|
|
2315
2317
|
}
|
|
2316
2318
|
}), _react["default"].createElement(_ChannelContext.ChannelProvider, {
|
|
@@ -2318,7 +2320,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2318
2320
|
__self: _this,
|
|
2319
2321
|
__source: {
|
|
2320
2322
|
fileName: _jsxFileName,
|
|
2321
|
-
lineNumber:
|
|
2323
|
+
lineNumber: 2308,
|
|
2322
2324
|
columnNumber: 7
|
|
2323
2325
|
}
|
|
2324
2326
|
}, _react["default"].createElement(_OwnCapabilitiesContext.OwnCapabilitiesProvider, {
|
|
@@ -2326,7 +2328,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2326
2328
|
__self: _this,
|
|
2327
2329
|
__source: {
|
|
2328
2330
|
fileName: _jsxFileName,
|
|
2329
|
-
lineNumber:
|
|
2331
|
+
lineNumber: 2309,
|
|
2330
2332
|
columnNumber: 9
|
|
2331
2333
|
}
|
|
2332
2334
|
}, _react["default"].createElement(_TypingContext.TypingProvider, {
|
|
@@ -2334,7 +2336,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2334
2336
|
__self: _this,
|
|
2335
2337
|
__source: {
|
|
2336
2338
|
fileName: _jsxFileName,
|
|
2337
|
-
lineNumber:
|
|
2339
|
+
lineNumber: 2310,
|
|
2338
2340
|
columnNumber: 11
|
|
2339
2341
|
}
|
|
2340
2342
|
}, _react["default"].createElement(_PaginatedMessageListContext.PaginatedMessageListProvider, {
|
|
@@ -2342,7 +2344,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2342
2344
|
__self: _this,
|
|
2343
2345
|
__source: {
|
|
2344
2346
|
fileName: _jsxFileName,
|
|
2345
|
-
lineNumber:
|
|
2347
|
+
lineNumber: 2311,
|
|
2346
2348
|
columnNumber: 13
|
|
2347
2349
|
}
|
|
2348
2350
|
}, _react["default"].createElement(_MessagesContext.MessagesProvider, {
|
|
@@ -2350,7 +2352,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2350
2352
|
__self: _this,
|
|
2351
2353
|
__source: {
|
|
2352
2354
|
fileName: _jsxFileName,
|
|
2353
|
-
lineNumber:
|
|
2355
|
+
lineNumber: 2312,
|
|
2354
2356
|
columnNumber: 15
|
|
2355
2357
|
}
|
|
2356
2358
|
}, _react["default"].createElement(_ThreadContext.ThreadProvider, {
|
|
@@ -2358,7 +2360,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2358
2360
|
__self: _this,
|
|
2359
2361
|
__source: {
|
|
2360
2362
|
fileName: _jsxFileName,
|
|
2361
|
-
lineNumber:
|
|
2363
|
+
lineNumber: 2313,
|
|
2362
2364
|
columnNumber: 17
|
|
2363
2365
|
}
|
|
2364
2366
|
}, _react["default"].createElement(_SuggestionsContext.SuggestionsProvider, {
|
|
@@ -2366,7 +2368,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2366
2368
|
__self: _this,
|
|
2367
2369
|
__source: {
|
|
2368
2370
|
fileName: _jsxFileName,
|
|
2369
|
-
lineNumber:
|
|
2371
|
+
lineNumber: 2314,
|
|
2370
2372
|
columnNumber: 19
|
|
2371
2373
|
}
|
|
2372
2374
|
}, _react["default"].createElement(_MessageInputContext.MessageInputProvider, {
|
|
@@ -2374,7 +2376,7 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2374
2376
|
__self: _this,
|
|
2375
2377
|
__source: {
|
|
2376
2378
|
fileName: _jsxFileName,
|
|
2377
|
-
lineNumber:
|
|
2379
|
+
lineNumber: 2315,
|
|
2378
2380
|
columnNumber: 21
|
|
2379
2381
|
}
|
|
2380
2382
|
}, _react["default"].createElement(_reactNative.View, {
|
|
@@ -2384,13 +2386,13 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
2384
2386
|
__self: _this,
|
|
2385
2387
|
__source: {
|
|
2386
2388
|
fileName: _jsxFileName,
|
|
2387
|
-
lineNumber:
|
|
2389
|
+
lineNumber: 2316,
|
|
2388
2390
|
columnNumber: 23
|
|
2389
2391
|
}
|
|
2390
2392
|
}, children))))))))));
|
|
2391
2393
|
};
|
|
2392
2394
|
var Channel = function Channel(props) {
|
|
2393
|
-
var _props$thread, _props$thread2
|
|
2395
|
+
var _props$thread, _props$thread2;
|
|
2394
2396
|
var _useChatContext = (0, _ChatContext.useChatContext)(),
|
|
2395
2397
|
client = _useChatContext.client,
|
|
2396
2398
|
enableOfflineSupport = _useChatContext.enableOfflineSupport;
|
|
@@ -2413,7 +2415,6 @@ var Channel = function Channel(props) {
|
|
|
2413
2415
|
watcherCount = _useChannelState.watcherCount,
|
|
2414
2416
|
watchers = _useChannelState.watchers;
|
|
2415
2417
|
return _react["default"].createElement(ChannelWithContext, (0, _extends2["default"])({
|
|
2416
|
-
key: (_props$channel = props.channel) == null ? void 0 : _props$channel.cid,
|
|
2417
2418
|
client: client,
|
|
2418
2419
|
enableOfflineSupport: enableOfflineSupport,
|
|
2419
2420
|
t: t
|
|
@@ -2436,7 +2437,7 @@ var Channel = function Channel(props) {
|
|
|
2436
2437
|
__self: _this,
|
|
2437
2438
|
__source: {
|
|
2438
2439
|
fileName: _jsxFileName,
|
|
2439
|
-
lineNumber:
|
|
2440
|
+
lineNumber: 2373,
|
|
2440
2441
|
columnNumber: 5
|
|
2441
2442
|
}
|
|
2442
2443
|
}));
|