stream-chat-react-native-core 5.27.0-beta.8 → 5.27.0

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 (97) hide show
  1. package/lib/commonjs/components/Attachment/Gallery.js +4 -4
  2. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  3. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js +1 -1
  4. package/lib/commonjs/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  5. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +100 -37
  6. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  7. package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js +3 -1
  8. package/lib/commonjs/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  9. package/lib/commonjs/components/ImageGallery/ImageGallery.js +39 -21
  10. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  11. package/lib/commonjs/components/MessageList/MessageList.js +22 -21
  12. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  13. package/lib/commonjs/i18n/es.json +17 -17
  14. package/lib/commonjs/i18n/fr.json +17 -17
  15. package/lib/commonjs/i18n/he.json +17 -17
  16. package/lib/commonjs/i18n/hi.json +17 -17
  17. package/lib/commonjs/i18n/it.json +17 -17
  18. package/lib/commonjs/i18n/ja.json +17 -17
  19. package/lib/commonjs/i18n/ko.json +17 -17
  20. package/lib/commonjs/i18n/nl.json +17 -17
  21. package/lib/commonjs/i18n/pt-BR.json +17 -17
  22. package/lib/commonjs/i18n/ru.json +17 -17
  23. package/lib/commonjs/i18n/tr.json +17 -17
  24. package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js +21 -0
  25. package/lib/commonjs/store/apis/upsertChannelDataFromChannel.js.map +1 -0
  26. package/lib/commonjs/store/mappers/mapChannelToStorable.js +63 -0
  27. package/lib/commonjs/store/mappers/mapChannelToStorable.js.map +1 -0
  28. package/lib/commonjs/utils/DBSyncManager.js +73 -68
  29. package/lib/commonjs/utils/DBSyncManager.js.map +1 -1
  30. package/lib/commonjs/version.json +1 -1
  31. package/lib/module/components/Attachment/Gallery.js +4 -4
  32. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  33. package/lib/module/components/AttachmentPicker/AttachmentPicker.js +1 -1
  34. package/lib/module/components/AttachmentPicker/AttachmentPicker.js.map +1 -1
  35. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +100 -37
  36. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  37. package/lib/module/components/Chat/hooks/useSyncDatabase.js +3 -1
  38. package/lib/module/components/Chat/hooks/useSyncDatabase.js.map +1 -1
  39. package/lib/module/components/ImageGallery/ImageGallery.js +39 -21
  40. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  41. package/lib/module/components/MessageList/MessageList.js +22 -21
  42. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  43. package/lib/module/i18n/es.json +17 -17
  44. package/lib/module/i18n/fr.json +17 -17
  45. package/lib/module/i18n/he.json +17 -17
  46. package/lib/module/i18n/hi.json +17 -17
  47. package/lib/module/i18n/it.json +17 -17
  48. package/lib/module/i18n/ja.json +17 -17
  49. package/lib/module/i18n/ko.json +17 -17
  50. package/lib/module/i18n/nl.json +17 -17
  51. package/lib/module/i18n/pt-BR.json +17 -17
  52. package/lib/module/i18n/ru.json +17 -17
  53. package/lib/module/i18n/tr.json +17 -17
  54. package/lib/module/store/apis/upsertChannelDataFromChannel.js +21 -0
  55. package/lib/module/store/apis/upsertChannelDataFromChannel.js.map +1 -0
  56. package/lib/module/store/mappers/mapChannelToStorable.js +63 -0
  57. package/lib/module/store/mappers/mapChannelToStorable.js.map +1 -0
  58. package/lib/module/utils/DBSyncManager.js +73 -68
  59. package/lib/module/utils/DBSyncManager.js.map +1 -1
  60. package/lib/module/version.json +1 -1
  61. package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts +4 -2
  62. package/lib/typescript/i18n/es.json +17 -17
  63. package/lib/typescript/i18n/fr.json +17 -17
  64. package/lib/typescript/i18n/he.json +17 -17
  65. package/lib/typescript/i18n/hi.json +17 -17
  66. package/lib/typescript/i18n/it.json +17 -17
  67. package/lib/typescript/i18n/ja.json +17 -17
  68. package/lib/typescript/i18n/ko.json +17 -17
  69. package/lib/typescript/i18n/nl.json +17 -17
  70. package/lib/typescript/i18n/pt-BR.json +17 -17
  71. package/lib/typescript/i18n/ru.json +17 -17
  72. package/lib/typescript/i18n/tr.json +17 -17
  73. package/lib/typescript/store/apis/upsertChannelDataFromChannel.d.ts +6 -0
  74. package/lib/typescript/store/mappers/mapChannelToStorable.d.ts +4 -0
  75. package/lib/typescript/utils/DBSyncManager.d.ts +1 -1
  76. package/package.json +1 -1
  77. package/src/components/Attachment/Gallery.tsx +5 -5
  78. package/src/components/AttachmentPicker/AttachmentPicker.tsx +1 -1
  79. package/src/components/Chat/hooks/handleEventToSyncDB.ts +132 -46
  80. package/src/components/Chat/hooks/useSyncDatabase.ts +1 -1
  81. package/src/components/ImageGallery/ImageGallery.tsx +25 -2
  82. package/src/components/MessageList/MessageList.tsx +4 -2
  83. package/src/i18n/es.json +17 -17
  84. package/src/i18n/fr.json +17 -17
  85. package/src/i18n/he.json +17 -17
  86. package/src/i18n/hi.json +17 -17
  87. package/src/i18n/it.json +17 -17
  88. package/src/i18n/ja.json +17 -17
  89. package/src/i18n/ko.json +17 -17
  90. package/src/i18n/nl.json +17 -17
  91. package/src/i18n/pt-BR.json +17 -17
  92. package/src/i18n/ru.json +17 -17
  93. package/src/i18n/tr.json +17 -17
  94. package/src/store/apis/upsertChannelDataFromChannel.ts +25 -0
  95. package/src/store/mappers/mapChannelToStorable.ts +68 -0
  96. package/src/utils/DBSyncManager.ts +7 -3
  97. package/src/version.json +1 -1
package/src/i18n/nl.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "1 Reply": "1 Antwoord",
3
- "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
3
+ "1 Thread Reply": "1 thread antwoord",
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?": "Weet u zeker dat u dit bericht definitief wilt verwijderen?",
8
8
  "Are you sure?": "Weet je het zeker?",
@@ -13,10 +13,10 @@
13
13
  "Copy Message": "Bericht kopiëren",
14
14
  "Delete": "Verwijderen",
15
15
  "Delete Message": "Verwijder bericht",
16
- "Device camera is used to take photos or videos.": "",
16
+ "Device camera is used to take photos or videos.": "De camera van het apparaat wordt gebruikt om foto's of video's te maken.",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "Wil je een kopie van dit bericht naar een moderator sturen voor verder onderzoek?",
18
18
  "Edit Message": "Pas bericht aan",
19
- "Editing Message": "",
19
+ "Editing Message": "Bericht aanpassen",
20
20
  "Emoji matching": "Emoji-overeenkomsten",
21
21
  "Empty message...": "Leeg bericht...",
22
22
  "Error loading": "Probleem bij het laden",
@@ -39,23 +39,23 @@
39
39
  "Message deleted": "Bericht verwijderd",
40
40
  "Message flagged": "Bericht gemarkeerd",
41
41
  "Mute User": "Gebruiker dempen",
42
- "Not supported": "",
42
+ "Not supported": "niet ondersteund",
43
43
  "Nothing yet...": "Nog niets...",
44
44
  "Ok": "Oké",
45
- "Only visible to you": "",
46
- "Open Settings": "",
45
+ "Only visible to you": "Alleen zichtbaar voor jou",
46
+ "Open Settings": "Open instellingen",
47
47
  "Photo": "Foto",
48
- "Photos and Videos": "",
48
+ "Photos and Videos": "Foto's en video's",
49
49
  "Pin to Conversation": "Vastmaken aan gesprek",
50
- "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "",
50
+ "Pinned by": "Vastgemaakt door",
51
+ "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.",
52
52
  "Please select a channel first": "Selecteer eerst een kanaal",
53
53
  "Reconnecting...": "Opnieuw Verbinding Maken...",
54
54
  "Reply": "Antwoord",
55
55
  "Reply to Message": "Beantwoord bericht",
56
56
  "Resend": "Opnieuw versturen",
57
57
  "Search GIFs": "Zoek GIF's",
58
- "Select More Photos": "",
58
+ "Select More Photos": "Selecteer Meer foto's",
59
59
  "Send Anyway": "Toch verzenden",
60
60
  "Send a message": "Stuur een bericht",
61
61
  "Sending links is not allowed in this conversation": "In dit gesprek is het niet toegestaan links te versturen",
@@ -63,17 +63,17 @@
63
63
  "The message has been reported to a moderator.": "Het bericht is gerapporteerd aan een moderator.",
64
64
  "Thread Reply": "Discussie beantwoorden",
65
65
  "Unblock User": "Deblokkeer gebruiker",
66
- "Unknown User": "",
66
+ "Unknown User": "Onbekende gebruiker",
67
67
  "Unmute User": "Dempen van gebruiker opheffen",
68
68
  "Unpin from Conversation": "Losmaken van gesprek",
69
69
  "Unread Messages": "Ongelezen Berichten",
70
70
  "Video": "Video",
71
71
  "You": "U",
72
72
  "You can't send messages in this channel": "Je kan geen berichten sturen in dit kanaal",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
74
+ "{{ index }} of {{ photoLength }}": "{{ index }} van {{ photoLength }}",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
76
- "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "",
76
+ "{{ replyCount }} Thread Replies": "{{replyCount}} Discussiereacties",
77
+ "{{ user }} is typing": "{{ user }} is aan het typen",
78
78
  "🏙 Attachment...": "🏙 Bijlage..."
79
79
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "1 Reply": "1 Resposta",
3
- "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
3
+ "1 Thread Reply": "1 Resposta de Thread",
4
+ "Allow access to your Gallery": "Permitir acesso à sua Galeria",
5
+ "Allow camera access in device settings": "Permitir acesso à câmera nas configurações do dispositivo",
6
6
  "Also send to channel": "Também enviar para o canal",
7
7
  "Are you sure you want to permanently delete this message?": "Tem certeza de que deseja excluir esta mensagem permanentemente?",
8
8
  "Are you sure?": "Tem certeza?",
@@ -13,10 +13,10 @@
13
13
  "Copy Message": "Copiar Mensagem",
14
14
  "Delete": "Excluir",
15
15
  "Delete Message": "Excluir Mensagem",
16
- "Device camera is used to take photos or videos.": "",
16
+ "Device camera is used to take photos or videos.": "A câmera do dispositivo é usada para tirar fotos ou vídeos.",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "Deseja enviar uma cópia desta mensagem para um moderador para investigação adicional?",
18
18
  "Edit Message": "Editar Mensagem",
19
- "Editing Message": "",
19
+ "Editing Message": "Editando Mensagem",
20
20
  "Emoji matching": "Correspondência de Emoji",
21
21
  "Empty message...": "Mensagem vazia...",
22
22
  "Error loading": "Erro ao carregar",
@@ -39,23 +39,23 @@
39
39
  "Message deleted": "Mensagem excluída",
40
40
  "Message flagged": "Mensagem sinalizada",
41
41
  "Mute User": "Silenciar Usuário",
42
- "Not supported": "",
42
+ "Not supported": "Não suportado",
43
43
  "Nothing yet...": "Nada ainda...",
44
44
  "Ok": "Ok",
45
- "Only visible to you": "",
46
- "Open Settings": "",
45
+ "Only visible to you": "Apenas visível para você",
46
+ "Open Settings": "Abrir Configurações",
47
47
  "Photo": "Foto",
48
- "Photos and Videos": "",
48
+ "Photos and Videos": "Fotos e Vídeos",
49
49
  "Pin to Conversation": "Fixar na Conversa",
50
- "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "",
50
+ "Pinned by": "Fixado por",
51
+ "Please enable access to your photos and videos so you can share them.": "Por favor, habilite o acesso às suas fotos e vídeos para poder compartilhá-los.",
52
52
  "Please select a channel first": "Por favor, selecione um canal primeiro",
53
53
  "Reconnecting...": "Reconectando...",
54
54
  "Reply": "Responder",
55
55
  "Reply to Message": "Responder à Mensagem",
56
56
  "Resend": "Reenviar",
57
57
  "Search GIFs": "Pesquisar GIFs",
58
- "Select More Photos": "",
58
+ "Select More Photos": "Selecionar Mais Fotos",
59
59
  "Send Anyway": "Enviar de qualquer maneira",
60
60
  "Send a message": "Enviar uma mensagem",
61
61
  "Sending links is not allowed in this conversation": "Não é permitido enviar links nesta conversa",
@@ -63,17 +63,17 @@
63
63
  "The message has been reported to a moderator.": "A mensagem foi relatada a um moderador.",
64
64
  "Thread Reply": "Respostas de Tópico",
65
65
  "Unblock User": "Desbloquear Usuário",
66
- "Unknown User": "",
66
+ "Unknown User": "Usuário Desconhecido",
67
67
  "Unmute User": "Remover usuário do modo silencioso",
68
68
  "Unpin from Conversation": "Desmarcar como fixado na conversa",
69
69
  "Unread Messages": "Mensagens não lidas",
70
70
  "Video": "Vídeo",
71
71
  "You": "Você",
72
72
  "You can't send messages in this channel": "Você não pode enviar mensagens neste canal",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e mais {{ nonSelfUserLength }} pessoa(s) estão digitando",
74
+ "{{ index }} of {{ photoLength }}": "{{ index }} de {{ photoLength }}",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Respostas",
76
- "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "",
76
+ "{{ replyCount }} Thread Replies": "{{ replyCount }} Respostas de Thread",
77
+ "{{ user }} is typing": "{{ user }} está digitando",
78
78
  "🏙 Attachment...": "🏙 Anexo..."
79
79
  }
package/src/i18n/ru.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "1 Reply": "1 Ответ",
3
- "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
3
+ "1 Thread Reply": "1 тема Ответить",
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
  "Are you sure?": "Вы уверены?",
@@ -13,10 +13,10 @@
13
13
  "Copy Message": "Копировать сообщение",
14
14
  "Delete": "удалять",
15
15
  "Delete Message": "Удалить сообщение",
16
- "Device camera is used to take photos or videos.": "",
16
+ "Device camera is used to take photos or videos.": "Камера устройства используется для съемки фотографий или видео.",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
18
18
  "Edit Message": "Редактировать сообщение",
19
- "Editing Message": "",
19
+ "Editing Message": "Редактирование сообщения",
20
20
  "Emoji matching": "Соответствие эмодзи",
21
21
  "Empty message...": "Пустое сообщение...",
22
22
  "Error loading": "Ошибка при загрузке",
@@ -39,23 +39,23 @@
39
39
  "Message deleted": "Сообщение удалено",
40
40
  "Message flagged": "Сообщение отмечено",
41
41
  "Mute User": "Отключить пользователя",
42
- "Not supported": "",
42
+ "Not supported": "не поддерживается",
43
43
  "Nothing yet...": "Пока ничего нет...",
44
44
  "Ok": "Oк",
45
- "Only visible to you": "",
46
- "Open Settings": "",
45
+ "Only visible to you": "Видно только вам",
46
+ "Open Settings": "Открыть настройки",
47
47
  "Photo": "Фото",
48
- "Photos and Videos": "",
48
+ "Photos and Videos": "Фото и видео",
49
49
  "Pin to Conversation": "Закрепить к беседе",
50
- "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "",
50
+ "Pinned by": "Закреплено пользователем",
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
55
  "Reply to Message": "Ответить на сообщение",
56
56
  "Resend": "Отправить",
57
57
  "Search GIFs": "Поиск GIF",
58
- "Select More Photos": "",
58
+ "Select More Photos": "Выбрать больше фотографий",
59
59
  "Send Anyway": "Всё равно отправить",
60
60
  "Send a message": "Отправить сообщение",
61
61
  "Sending links is not allowed in this conversation": "Отправка ссылок недоступна в этом чате",
@@ -63,17 +63,17 @@
63
63
  "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
64
64
  "Thread Reply": "Тема Ответить",
65
65
  "Unblock User": "Разблокировать пользователя",
66
- "Unknown User": "",
66
+ "Unknown User": "Неизвестный пользователь",
67
67
  "Unmute User": "Включить микрофон",
68
68
  "Unpin from Conversation": "Открепить от беседы",
69
69
  "Unread Messages": "Непрочитанные Сообщения",
70
70
  "Video": "видео",
71
71
  "You": "Вы",
72
72
  "You can't send messages in this channel": "Вы не можете отправлять сообщения в этот канал",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
74
+ "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
76
- "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "",
76
+ "{{ replyCount }} Thread Replies": "{{replyCount}} Ответы в темах",
77
+ "{{ user }} is typing": "{{ user }} пишет",
78
78
  "🏙 Attachment...": "🏙 Вложение..."
79
79
  }
package/src/i18n/tr.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "1 Reply": "1 Cevap",
3
- "1 Thread Reply": "",
4
- "Allow access to your Gallery": "",
5
- "Allow camera access in device settings": "",
3
+ "1 Thread Reply": "1 Konu Yanıtı",
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?": "Bu mesajı kalıcı olarak silmek istediğinizden emin misiniz?",
8
8
  "Are you sure?": "Emin misiniz?",
@@ -13,10 +13,10 @@
13
13
  "Copy Message": "Mesajı Kopyala",
14
14
  "Delete": "Sil",
15
15
  "Delete Message": "Mesajı Sil",
16
- "Device camera is used to take photos or videos.": "",
16
+ "Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
17
17
  "Do you want to send a copy of this message to a moderator for further investigation?": "Detaylı inceleme için bu mesajın kopyasını moderatöre göndermek istiyor musunuz?",
18
18
  "Edit Message": "Mesajı Düzenle",
19
- "Editing Message": "",
19
+ "Editing Message": "Mesaj Düzenleniyor",
20
20
  "Emoji matching": "Emoji eşleştirme",
21
21
  "Empty message...": "Boş mesaj...",
22
22
  "Error loading": "Yükleme hatası",
@@ -39,23 +39,23 @@
39
39
  "Message deleted": "Mesaj silindi",
40
40
  "Message flagged": "Mesaj işaretlendi",
41
41
  "Mute User": "Kullanıcıyı sessize al",
42
- "Not supported": "",
42
+ "Not supported": "Desteklenmiyor",
43
43
  "Nothing yet...": "Henüz değil...",
44
44
  "Ok": "Tamam",
45
- "Only visible to you": "",
46
- "Open Settings": "",
45
+ "Only visible to you": "Sadece siz görebilirsiniz",
46
+ "Open Settings": "Ayarları aç",
47
47
  "Photo": "Fotoğraf",
48
- "Photos and Videos": "",
48
+ "Photos and Videos": "Fotoğraflar ve Videolar",
49
49
  "Pin to Conversation": "Konuşmaya sabitle",
50
- "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "",
50
+ "Pinned by": "Tarafından sabitlendi",
51
+ "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.",
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": "Yanıtla",
55
55
  "Reply to Message": "Mesajı Yanıtla",
56
56
  "Resend": "Yeniden gönder",
57
57
  "Search GIFs": "GIF Ara",
58
- "Select More Photos": "",
58
+ "Select More Photos": "Daha Fazla Fotoğraf Seçin",
59
59
  "Send Anyway": "Yine de Gönder",
60
60
  "Send a message": "Mesaj gönder",
61
61
  "Sending links is not allowed in this conversation": "Bu konuşmada bağlantı göndermek desteklenmiyor",
@@ -63,17 +63,17 @@
63
63
  "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
64
64
  "Thread Reply": "Konu Yanıtı",
65
65
  "Unblock User": "Kullanıcının engelini kaldır",
66
- "Unknown User": "",
66
+ "Unknown User": "Bilinmeyen kullanıcı",
67
67
  "Unmute User": "Kullanıcının sesini aç",
68
68
  "Unpin from Conversation": "Sabitlemeyi kaldır",
69
69
  "Unread Messages": "Okunmamış Mesajlar",
70
70
  "Video": "Video",
71
71
  "You": "Sen",
72
72
  "You can't send messages in this channel": "Bu konuşmaya mesaj gönderemezsiniz",
73
- "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "",
74
- "{{ index }} of {{ photoLength }}": "",
73
+ "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
74
+ "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
75
75
  "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
76
- "{{ replyCount }} Thread Replies": "",
77
- "{{ user }} is typing": "",
76
+ "{{ replyCount }} Thread Replies": "{{responseCount}} Konu Cevapı",
77
+ "{{ user }} is typing": "{{ user }} yazıyor",
78
78
  "🏙 Attachment...": "🏙 Ek..."
79
79
  }
@@ -0,0 +1,25 @@
1
+ import { DefaultStreamChatGenerics } from 'src/types/types';
2
+ import type { Channel } from 'stream-chat';
3
+
4
+ import { mapChannelToStorable } from '../mappers/mapChannelToStorable';
5
+ import { QuickSqliteClient } from '../QuickSqliteClient';
6
+ import { createUpsertQuery } from '../sqlite-utils/createUpsertQuery';
7
+
8
+ export const upsertChannelDataFromChannel = <
9
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
10
+ >({
11
+ channel,
12
+ flush = true,
13
+ }: {
14
+ channel: Channel<StreamChatGenerics>;
15
+ flush?: boolean;
16
+ }) => {
17
+ const storableChannel = mapChannelToStorable(channel);
18
+ if (!storableChannel) return;
19
+ const query = createUpsertQuery('channels', storableChannel);
20
+ if (flush) {
21
+ QuickSqliteClient.executeSqlBatch([query]);
22
+ }
23
+
24
+ return [query];
25
+ };
@@ -0,0 +1,68 @@
1
+ import type { Channel, ChannelResponse } from 'stream-chat';
2
+
3
+ import { mapDateTimeToStorable } from './mapDateTimeToStorable';
4
+
5
+ import type { DefaultStreamChatGenerics } from '../../types/types';
6
+
7
+ import type { TableRow } from '../types';
8
+
9
+ export const mapChannelToStorable = <
10
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
11
+ >(
12
+ channel: Channel<StreamChatGenerics>,
13
+ ): TableRow<'channels'> | undefined => {
14
+ if (!channel.data) return;
15
+ const {
16
+ auto_translation_enabled,
17
+ auto_translation_language,
18
+ cid,
19
+ config,
20
+ cooldown,
21
+ created_at,
22
+ deleted_at,
23
+ disabled,
24
+ frozen,
25
+ hidden,
26
+ id,
27
+ invites,
28
+ last_message_at,
29
+ member_count,
30
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
31
+ members,
32
+ muted,
33
+ own_capabilities,
34
+ team,
35
+ truncated_at,
36
+ truncated_by,
37
+ truncated_by_id,
38
+ type,
39
+ updated_at,
40
+ ...extraData
41
+ } = channel.data as unknown as ChannelResponse<StreamChatGenerics>;
42
+
43
+ return {
44
+ autoTranslationEnabled: auto_translation_enabled,
45
+ autoTranslationLanguage: auto_translation_language,
46
+ cid,
47
+ config: config && JSON.stringify(config),
48
+ cooldown,
49
+ createdAt: mapDateTimeToStorable(created_at),
50
+ deletedAt: mapDateTimeToStorable(deleted_at),
51
+ disabled,
52
+ extraData: JSON.stringify(extraData),
53
+ frozen,
54
+ hidden,
55
+ id,
56
+ invites: invites && JSON.stringify(invites),
57
+ lastMessageAt: mapDateTimeToStorable(last_message_at),
58
+ memberCount: member_count,
59
+ muted,
60
+ ownCapabilities: own_capabilities && JSON.stringify(own_capabilities),
61
+ team,
62
+ truncatedAt: truncated_at,
63
+ truncatedBy: truncated_by && JSON.stringify(truncated_by),
64
+ truncatedById: truncated_by_id,
65
+ type,
66
+ updatedAt: updated_at,
67
+ };
68
+ };
@@ -90,7 +90,11 @@ export class DBSyncManager {
90
90
  };
91
91
  };
92
92
 
93
- static sync = async () => {
93
+ static sync = async <
94
+ StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
95
+ >(
96
+ client: StreamChat<StreamChatGenerics>,
97
+ ) => {
94
98
  if (!this.client?.user) return;
95
99
  const cids = getAllChannelIds();
96
100
  // If there are no channels, then there is no need to sync.
@@ -113,7 +117,7 @@ export class DBSyncManager {
113
117
  try {
114
118
  const result = await this.client.sync(cids, lastSyncedAtDate.toISOString());
115
119
  const queries = result.events.reduce<PreparedQueries[]>((queries, event) => {
116
- queries = queries.concat(handleEventToSyncDB(event, false));
120
+ queries = queries.concat(handleEventToSyncDB(event, client, false));
117
121
  return queries;
118
122
  }, []);
119
123
 
@@ -137,7 +141,7 @@ export class DBSyncManager {
137
141
  if (!this.client) return;
138
142
 
139
143
  await this.executePendingTasks(this.client);
140
- await this.sync();
144
+ await this.sync(this.client);
141
145
  };
142
146
 
143
147
  static queueTask = async <
package/src/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "5.27.0-beta.8"
2
+ "version": "5.27.0"
3
3
  }