stream-chat-react-native-core 5.26.0-beta.6 → 5.26.0-beta.7

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 (230) hide show
  1. package/lib/commonjs/i18n/en.json +1 -1
  2. package/lib/commonjs/i18n/es.json +47 -47
  3. package/lib/commonjs/i18n/fr.json +47 -47
  4. package/lib/commonjs/i18n/he.json +47 -47
  5. package/lib/commonjs/i18n/hi.json +47 -47
  6. package/lib/commonjs/i18n/it.json +47 -47
  7. package/lib/commonjs/i18n/ja.json +47 -47
  8. package/lib/commonjs/i18n/ko.json +47 -47
  9. package/lib/commonjs/i18n/nl.json +46 -46
  10. package/lib/commonjs/i18n/pt-BR.json +46 -46
  11. package/lib/commonjs/i18n/ru.json +46 -46
  12. package/lib/commonjs/i18n/tr.json +46 -46
  13. package/lib/commonjs/store/QuickSqliteClient.js +37 -2
  14. package/lib/commonjs/store/QuickSqliteClient.js.map +1 -1
  15. package/lib/commonjs/store/apis/addPendingTask.js +16 -4
  16. package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
  17. package/lib/commonjs/store/apis/deleteChannel.js +4 -0
  18. package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
  19. package/lib/commonjs/store/apis/deleteMember.js +5 -0
  20. package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
  21. package/lib/commonjs/store/apis/deleteMessage.js +4 -0
  22. package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
  23. package/lib/commonjs/store/apis/deleteMessagesForChannel.js +4 -0
  24. package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
  25. package/lib/commonjs/store/apis/deletePendingTask.js +3 -0
  26. package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
  27. package/lib/commonjs/store/apis/deleteReaction.js +5 -0
  28. package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
  29. package/lib/commonjs/store/apis/deleteReactions.js +5 -3
  30. package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
  31. package/lib/commonjs/store/apis/getAllChannelIds.js +2 -0
  32. package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
  33. package/lib/commonjs/store/apis/getAppSettings.js +3 -0
  34. package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
  35. package/lib/commonjs/store/apis/getChannelMessages.js +5 -0
  36. package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
  37. package/lib/commonjs/store/apis/getChannels.js +5 -0
  38. package/lib/commonjs/store/apis/getChannels.js.map +1 -1
  39. package/lib/commonjs/store/apis/getChannelsForFilterSort.js +5 -0
  40. package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
  41. package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -0
  42. package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
  43. package/lib/commonjs/store/apis/getMembers.js +4 -0
  44. package/lib/commonjs/store/apis/getMembers.js.map +1 -1
  45. package/lib/commonjs/store/apis/getPendingTasks.js +3 -0
  46. package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
  47. package/lib/commonjs/store/apis/getReads.js +4 -0
  48. package/lib/commonjs/store/apis/getReads.js.map +1 -1
  49. package/lib/commonjs/store/apis/insertReaction.js +6 -1
  50. package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
  51. package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +3 -0
  52. package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  53. package/lib/commonjs/store/apis/queries/selectChannels.js +3 -0
  54. package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
  55. package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +3 -0
  56. package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
  57. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +3 -0
  58. package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  59. package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +3 -0
  60. package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  61. package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +3 -0
  62. package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
  63. package/lib/commonjs/store/apis/updateMessage.js +18 -4
  64. package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
  65. package/lib/commonjs/store/apis/updateReaction.js +12 -1
  66. package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
  67. package/lib/commonjs/store/apis/upsertAppSettings.js +7 -1
  68. package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
  69. package/lib/commonjs/store/apis/upsertChannelData.js +6 -1
  70. package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
  71. package/lib/commonjs/store/apis/upsertChannels.js +6 -3
  72. package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
  73. package/lib/commonjs/store/apis/upsertCidsForQuery.js +12 -5
  74. package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
  75. package/lib/commonjs/store/apis/upsertMembers.js +15 -3
  76. package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
  77. package/lib/commonjs/store/apis/upsertMessages.js +20 -8
  78. package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
  79. package/lib/commonjs/store/apis/upsertReads.js +18 -3
  80. package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
  81. package/lib/commonjs/store/apis/upsertUserSyncStatus.js +4 -0
  82. package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
  83. package/lib/commonjs/version.json +1 -1
  84. package/lib/module/i18n/en.json +1 -1
  85. package/lib/module/i18n/es.json +47 -47
  86. package/lib/module/i18n/fr.json +47 -47
  87. package/lib/module/i18n/he.json +47 -47
  88. package/lib/module/i18n/hi.json +47 -47
  89. package/lib/module/i18n/it.json +47 -47
  90. package/lib/module/i18n/ja.json +47 -47
  91. package/lib/module/i18n/ko.json +47 -47
  92. package/lib/module/i18n/nl.json +46 -46
  93. package/lib/module/i18n/pt-BR.json +46 -46
  94. package/lib/module/i18n/ru.json +46 -46
  95. package/lib/module/i18n/tr.json +46 -46
  96. package/lib/module/store/QuickSqliteClient.js +37 -2
  97. package/lib/module/store/QuickSqliteClient.js.map +1 -1
  98. package/lib/module/store/apis/addPendingTask.js +16 -4
  99. package/lib/module/store/apis/addPendingTask.js.map +1 -1
  100. package/lib/module/store/apis/deleteChannel.js +4 -0
  101. package/lib/module/store/apis/deleteChannel.js.map +1 -1
  102. package/lib/module/store/apis/deleteMember.js +5 -0
  103. package/lib/module/store/apis/deleteMember.js.map +1 -1
  104. package/lib/module/store/apis/deleteMessage.js +4 -0
  105. package/lib/module/store/apis/deleteMessage.js.map +1 -1
  106. package/lib/module/store/apis/deleteMessagesForChannel.js +4 -0
  107. package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
  108. package/lib/module/store/apis/deletePendingTask.js +3 -0
  109. package/lib/module/store/apis/deletePendingTask.js.map +1 -1
  110. package/lib/module/store/apis/deleteReaction.js +5 -0
  111. package/lib/module/store/apis/deleteReaction.js.map +1 -1
  112. package/lib/module/store/apis/deleteReactions.js +5 -3
  113. package/lib/module/store/apis/deleteReactions.js.map +1 -1
  114. package/lib/module/store/apis/getAllChannelIds.js +2 -0
  115. package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
  116. package/lib/module/store/apis/getAppSettings.js +3 -0
  117. package/lib/module/store/apis/getAppSettings.js.map +1 -1
  118. package/lib/module/store/apis/getChannelMessages.js +5 -0
  119. package/lib/module/store/apis/getChannelMessages.js.map +1 -1
  120. package/lib/module/store/apis/getChannels.js +5 -0
  121. package/lib/module/store/apis/getChannels.js.map +1 -1
  122. package/lib/module/store/apis/getChannelsForFilterSort.js +5 -0
  123. package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
  124. package/lib/module/store/apis/getLastSyncedAt.js +3 -0
  125. package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
  126. package/lib/module/store/apis/getMembers.js +4 -0
  127. package/lib/module/store/apis/getMembers.js.map +1 -1
  128. package/lib/module/store/apis/getPendingTasks.js +3 -0
  129. package/lib/module/store/apis/getPendingTasks.js.map +1 -1
  130. package/lib/module/store/apis/getReads.js +4 -0
  131. package/lib/module/store/apis/getReads.js.map +1 -1
  132. package/lib/module/store/apis/insertReaction.js +6 -1
  133. package/lib/module/store/apis/insertReaction.js.map +1 -1
  134. package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +3 -0
  135. package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
  136. package/lib/module/store/apis/queries/selectChannels.js +3 -0
  137. package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
  138. package/lib/module/store/apis/queries/selectMembersForChannels.js +3 -0
  139. package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
  140. package/lib/module/store/apis/queries/selectMessagesForChannels.js +3 -0
  141. package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
  142. package/lib/module/store/apis/queries/selectReactionsForMessages.js +3 -0
  143. package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
  144. package/lib/module/store/apis/queries/selectReadsForChannels.js +3 -0
  145. package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
  146. package/lib/module/store/apis/updateMessage.js +18 -4
  147. package/lib/module/store/apis/updateMessage.js.map +1 -1
  148. package/lib/module/store/apis/updateReaction.js +12 -1
  149. package/lib/module/store/apis/updateReaction.js.map +1 -1
  150. package/lib/module/store/apis/upsertAppSettings.js +7 -1
  151. package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
  152. package/lib/module/store/apis/upsertChannelData.js +6 -1
  153. package/lib/module/store/apis/upsertChannelData.js.map +1 -1
  154. package/lib/module/store/apis/upsertChannels.js +6 -3
  155. package/lib/module/store/apis/upsertChannels.js.map +1 -1
  156. package/lib/module/store/apis/upsertCidsForQuery.js +12 -5
  157. package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
  158. package/lib/module/store/apis/upsertMembers.js +15 -3
  159. package/lib/module/store/apis/upsertMembers.js.map +1 -1
  160. package/lib/module/store/apis/upsertMessages.js +20 -8
  161. package/lib/module/store/apis/upsertMessages.js.map +1 -1
  162. package/lib/module/store/apis/upsertReads.js +18 -3
  163. package/lib/module/store/apis/upsertReads.js.map +1 -1
  164. package/lib/module/store/apis/upsertUserSyncStatus.js +4 -0
  165. package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
  166. package/lib/module/version.json +1 -1
  167. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -1
  168. package/lib/typescript/i18n/en.json +1 -1
  169. package/lib/typescript/i18n/es.json +47 -47
  170. package/lib/typescript/i18n/fr.json +47 -47
  171. package/lib/typescript/i18n/he.json +47 -47
  172. package/lib/typescript/i18n/hi.json +47 -47
  173. package/lib/typescript/i18n/it.json +47 -47
  174. package/lib/typescript/i18n/ja.json +47 -47
  175. package/lib/typescript/i18n/ko.json +47 -47
  176. package/lib/typescript/i18n/nl.json +46 -46
  177. package/lib/typescript/i18n/pt-BR.json +46 -46
  178. package/lib/typescript/i18n/ru.json +46 -46
  179. package/lib/typescript/i18n/tr.json +46 -46
  180. package/lib/typescript/store/QuickSqliteClient.d.ts +2 -0
  181. package/lib/typescript/store/apis/upsertMessages.d.ts +1 -2
  182. package/package.json +1 -1
  183. package/src/i18n/en.json +1 -1
  184. package/src/i18n/es.json +47 -47
  185. package/src/i18n/fr.json +47 -47
  186. package/src/i18n/he.json +47 -47
  187. package/src/i18n/hi.json +47 -47
  188. package/src/i18n/it.json +47 -47
  189. package/src/i18n/ja.json +47 -47
  190. package/src/i18n/ko.json +47 -47
  191. package/src/i18n/nl.json +46 -46
  192. package/src/i18n/pt-BR.json +46 -46
  193. package/src/i18n/ru.json +46 -46
  194. package/src/i18n/tr.json +46 -46
  195. package/src/store/QuickSqliteClient.ts +40 -3
  196. package/src/store/apis/addPendingTask.ts +20 -1
  197. package/src/store/apis/deleteChannel.ts +5 -0
  198. package/src/store/apis/deleteMember.ts +6 -0
  199. package/src/store/apis/deleteMessage.ts +6 -0
  200. package/src/store/apis/deleteMessagesForChannel.ts +6 -0
  201. package/src/store/apis/deletePendingTask.ts +4 -0
  202. package/src/store/apis/deleteReaction.ts +6 -0
  203. package/src/store/apis/deleteReactions.ts +5 -6
  204. package/src/store/apis/getAllChannelIds.ts +3 -0
  205. package/src/store/apis/getAppSettings.ts +3 -0
  206. package/src/store/apis/getChannelMessages.ts +5 -0
  207. package/src/store/apis/getChannels.ts +2 -0
  208. package/src/store/apis/getChannelsForFilterSort.ts +4 -0
  209. package/src/store/apis/getLastSyncedAt.ts +1 -0
  210. package/src/store/apis/getMembers.ts +2 -0
  211. package/src/store/apis/getPendingTasks.ts +1 -0
  212. package/src/store/apis/getReads.ts +2 -0
  213. package/src/store/apis/insertReaction.ts +8 -1
  214. package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +5 -0
  215. package/src/store/apis/queries/selectChannels.ts +4 -0
  216. package/src/store/apis/queries/selectMembersForChannels.ts +4 -0
  217. package/src/store/apis/queries/selectMessagesForChannels.ts +4 -0
  218. package/src/store/apis/queries/selectReactionsForMessages.ts +4 -0
  219. package/src/store/apis/queries/selectReadsForChannels.ts +5 -0
  220. package/src/store/apis/updateMessage.ts +22 -4
  221. package/src/store/apis/updateReaction.ts +15 -1
  222. package/src/store/apis/upsertAppSettings.ts +8 -1
  223. package/src/store/apis/upsertChannelData.ts +6 -1
  224. package/src/store/apis/upsertChannels.ts +6 -1
  225. package/src/store/apis/upsertCidsForQuery.ts +10 -2
  226. package/src/store/apis/upsertMembers.ts +16 -10
  227. package/src/store/apis/upsertMessages.ts +21 -11
  228. package/src/store/apis/upsertReads.ts +13 -10
  229. package/src/store/apis/upsertUserSyncStatus.ts +5 -0
  230. package/src/version.json +1 -1
package/src/i18n/ru.json CHANGED
@@ -1,78 +1,78 @@
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": "",
6
- "Also send to channel": "Также отправить на канал",
7
- "Are you sure you want to permanently delete this message?": "Вы действительно хотите удалить это сообщение без возможности восстановления?",
8
- "Are you sure?": "Вы уверены?",
9
- "Block User": "Заблокировать пользователя",
10
- "Cancel": "Отмена",
11
- "Cannot Flag Message": "Невозможно пожаловаться на сообщение",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Обдумайте, как ваш комментарий может повлиять на других, и убедитесь, что вы следуете нашим правилам сообщества",
13
- "Copy Message": "Копировать сообщение",
14
- "Delete": "удалять",
15
- "Delete Message": "Удалить сообщение",
16
- "Device camera is used to take photos or videos.": "",
17
- "Do you want to send a copy of this message to a moderator for further investigation?": "Вы хотите отправить копию этого сообщения модератору для дальнейшего изучения?",
18
- "Edit Message": "Редактировать сообщение",
19
- "Editing Message": "Редактирование сообщения",
20
- "Emoji matching": "",
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
+ "Are you sure?": "",
9
+ "Block User": "",
10
+ "Cancel": "",
11
+ "Cannot Flag Message": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
13
+ "Copy Message": "",
14
+ "Delete": "",
15
+ "Delete Message": "",
16
+ "Device camera is used to take photos or videos.": "Камера устройства используется для съемки фотографий или видео.",
17
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
+ "Edit Message": "",
19
+ "Editing Message": "",
20
+ "Emoji matching": "Соответствие эмодзи",
21
21
  "Empty message...": "",
22
22
  "Error loading": "",
23
23
  "Error loading channel list...": "",
24
24
  "Error loading messages for this channel...": "",
25
25
  "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "",
27
- "Flag": "Пометить",
28
- "Flag Message": "Пометить сообщение",
29
- "Flag action failed either due to a network issue or the message is already flagged": "Не удалось отправить жалобу. Возможные причины: проблема с подключением к интернету или ваша жалоба уже была принята.",
27
+ "Flag": "",
28
+ "Flag Message": "",
29
+ "Flag action failed either due to a network issue or the message is already flagged": "",
30
30
  "How about sending your first message to a friend?": "",
31
- "Instant Commands": "",
31
+ "Instant Commands": "Мгновенные Команды",
32
32
  "Let's start chatting!": "",
33
33
  "Links are disabled": "",
34
34
  "Loading channels...": "",
35
35
  "Loading messages...": "",
36
36
  "Loading...": "",
37
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "Сообщения Реакции",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "",
40
- "Message flagged": "Сообщение отмечено",
41
- "Mute User": "Отключить пользователя",
40
+ "Message flagged": "",
41
+ "Mute User": "",
42
42
  "Not supported": "",
43
43
  "Nothing yet...": "",
44
- "Ok": "",
44
+ "Ok": "",
45
45
  "Only visible to you": "",
46
- "Open Settings": "",
46
+ "Open Settings": "Открыть настройки",
47
47
  "Photo": "Фото",
48
- "Photos and Videos": "",
49
- "Pin to Conversation": "Закрепить к беседе",
48
+ "Photos and Videos": "Фото и видео",
49
+ "Pin to Conversation": "",
50
50
  "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "",
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
- "Reply": "Ответить",
55
- "Reply to Message": "Ответить на сообщение",
56
- "Resend": "Отправить",
57
- "Search GIFs": "Поиск GIF",
58
- "Select More Photos": "",
59
- "Send Anyway": "Всё равно отправить",
60
- "Send a message": "Отправить сообщение",
54
+ "Reply": "",
55
+ "Reply to Message": "",
56
+ "Resend": "",
57
+ "Search GIFs": "",
58
+ "Select More Photos": "Выбрать больше фотографий",
59
+ "Send Anyway": "",
60
+ "Send a message": "",
61
61
  "Sending links is not allowed in this conversation": "",
62
- "Slow mode ON": "Медленный режим включен",
63
- "The message has been reported to a moderator.": "Сообщение отправлено модератору.",
64
- "Thread Reply": "Тема Ответить",
65
- "Unblock User": "Разблокировать пользователя",
66
- "Unknown User": "",
67
- "Unmute User": "Включить микрофон",
68
- "Unpin from Conversation": "Открепить от беседы",
62
+ "Slow mode ON": "",
63
+ "The message has been reported to a moderator.": "",
64
+ "Thread Reply": "",
65
+ "Unblock User": "",
66
+ "Unknown User": "Неизвестный пользователь",
67
+ "Unmute User": "",
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
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} и еще {{ nonSelfUserLength }} пишут",
74
- "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "",
74
+ "{{ index }} of {{ photoLength }}": "{{ index }} из {{ photoLength }}",
75
+ "{{ replyCount }} Replies": "{{ replyCount }} Ответов",
76
76
  "{{ replyCount }} Thread Replies": "",
77
77
  "{{ user }} is typing": "{{ user }} пишет",
78
78
  "🏙 Attachment...": ""
package/src/i18n/tr.json CHANGED
@@ -1,78 +1,78 @@
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": "",
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
- "Are you sure?": "Emin misiniz?",
9
- "Block User": "Kullanıcıyı engelle",
10
- "Cancel": "İptal",
11
- "Cannot Flag Message": "Raporlama Başarısız",
12
- "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "Yorumunuzun diğerlerini nasıl hissettirebileceğini düşünün ve topluluk kurallarımızı takip ettiğinizden emin olun",
13
- "Copy Message": "Mesajı Kopyala",
14
- "Delete": "Sil",
15
- "Delete Message": "Mesajı Sil",
16
- "Device camera is used to take photos or videos.": "",
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
- "Edit Message": "Mesajı Düzenle",
19
- "Editing Message": "Mesaj Düzenleniyor",
20
- "Emoji matching": "",
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": "",
7
+ "Are you sure you want to permanently delete this message?": "",
8
+ "Are you sure?": "",
9
+ "Block User": "",
10
+ "Cancel": "",
11
+ "Cannot Flag Message": "",
12
+ "Consider how your comment might make others feel and be sure to follow our Community Guidelines": "",
13
+ "Copy Message": "",
14
+ "Delete": "",
15
+ "Delete Message": "",
16
+ "Device camera is used to take photos or videos.": "Cihaz kamerası fotoğraf veya video çekmek için kullanılır.",
17
+ "Do you want to send a copy of this message to a moderator for further investigation?": "",
18
+ "Edit Message": "",
19
+ "Editing Message": "",
20
+ "Emoji matching": "Emoji eşleştirme",
21
21
  "Empty message...": "",
22
22
  "Error loading": "",
23
23
  "Error loading channel list...": "",
24
24
  "Error loading messages for this channel...": "",
25
25
  "Error while loading, please reload/refresh": "",
26
26
  "File type not supported": "",
27
- "Flag": "Raporla",
28
- "Flag Message": "Mesajı Raporla",
29
- "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.",
27
+ "Flag": "",
28
+ "Flag Message": "",
29
+ "Flag action failed either due to a network issue or the message is already flagged": "",
30
30
  "How about sending your first message to a friend?": "",
31
- "Instant Commands": "",
31
+ "Instant Commands": "Anlık Komutlar",
32
32
  "Let's start chatting!": "",
33
33
  "Links are disabled": "",
34
34
  "Loading channels...": "",
35
35
  "Loading messages...": "",
36
36
  "Loading...": "",
37
37
  "Maximum file size upload limit reached. Please upload a file below {{MAX_FILE_SIZE_TO_UPLOAD_IN_MB}} MB.": "",
38
- "Message Reactions": "Mesaj Tepkileri",
38
+ "Message Reactions": "",
39
39
  "Message deleted": "",
40
- "Message flagged": "Mesaj işaretlendi",
41
- "Mute User": "Kullanıcıyı sessize al",
40
+ "Message flagged": "",
41
+ "Mute User": "",
42
42
  "Not supported": "",
43
43
  "Nothing yet...": "",
44
- "Ok": "Tamam",
44
+ "Ok": "",
45
45
  "Only visible to you": "",
46
- "Open Settings": "",
46
+ "Open Settings": "Ayarları aç",
47
47
  "Photo": "Fotoğraf",
48
- "Photos and Videos": "",
49
- "Pin to Conversation": "Konuşmaya sabitle",
48
+ "Photos and Videos": "Fotoğraflar ve Videolar",
49
+ "Pin to Conversation": "",
50
50
  "Pinned by": "",
51
- "Please enable access to your photos and videos so you can share them.": "",
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": "",
53
53
  "Reconnecting...": "",
54
- "Reply": "Yanıtla",
55
- "Reply to Message": "Mesajı Yanıtla",
56
- "Resend": "Yeniden gönder",
57
- "Search GIFs": "GIF Ara",
58
- "Select More Photos": "",
59
- "Send Anyway": "Yine de Gönder",
60
- "Send a message": "Mesaj gönder",
54
+ "Reply": "",
55
+ "Reply to Message": "",
56
+ "Resend": "",
57
+ "Search GIFs": "",
58
+ "Select More Photos": "Daha Fazla Fotoğraf Seçin",
59
+ "Send Anyway": "",
60
+ "Send a message": "",
61
61
  "Sending links is not allowed in this conversation": "",
62
- "Slow mode ON": "Yavaş Mod Açık",
63
- "The message has been reported to a moderator.": "Mesaj moderatöre bildirildi.",
64
- "Thread Reply": "Konu Yanıtı",
65
- "Unblock User": "Kullanıcının engelini kaldır",
66
- "Unknown User": "",
67
- "Unmute User": "Kullanıcının sesini aç",
68
- "Unpin from Conversation": "Sabitlemeyi kaldır",
62
+ "Slow mode ON": "",
63
+ "The message has been reported to a moderator.": "",
64
+ "Thread Reply": "",
65
+ "Unblock User": "",
66
+ "Unknown User": "Bilinmeyen kullanıcı",
67
+ "Unmute User": "",
68
+ "Unpin from Conversation": "",
69
69
  "Unread Messages": "",
70
70
  "Video": "Video",
71
71
  "You": "",
72
72
  "You can't send messages in this channel": "",
73
73
  "{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ve {{ nonSelfUserLength }} kişi daha yazıyor",
74
- "{{ index }} of {{ photoLength }}": "",
75
- "{{ replyCount }} Replies": "",
74
+ "{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
75
+ "{{ replyCount }} Replies": "{{ replyCount }} Cevap",
76
76
  "{{ replyCount }} Thread Replies": "",
77
77
  "{{ user }} is typing": "{{ user }} yazıyor",
78
78
  "🏙 Attachment...": ""
@@ -17,6 +17,8 @@ try {
17
17
  // 2. Offline support is disabled, in which case this library is not installed.
18
18
  }
19
19
 
20
+ import { Logger } from 'stream-chat';
21
+
20
22
  import { DB_LOCATION, DB_NAME } from './constants';
21
23
  import { tables } from './schema';
22
24
  import { createCreateTableQuery } from './sqlite-utils/createCreateTableQuery';
@@ -32,6 +34,7 @@ export class QuickSqliteClient {
32
34
 
33
35
  static dbName = DB_NAME;
34
36
  static dbLocation = DB_LOCATION;
37
+ static logger: Logger | undefined;
35
38
 
36
39
  static getDbVersion = () => QuickSqliteClient.dbVersion;
37
40
  // Force a specific db version. This is mainly useful for testsuit.
@@ -42,6 +45,9 @@ export class QuickSqliteClient {
42
45
  sqlite.open(QuickSqliteClient.dbName, QuickSqliteClient.dbLocation);
43
46
  sqlite.execute(QuickSqliteClient.dbName, `PRAGMA foreign_keys = ON`, []);
44
47
  } catch (e) {
48
+ this.logger?.('error', `Error opening database ${QuickSqliteClient.dbName}`, {
49
+ error: e,
50
+ });
45
51
  console.error(`Error opening database ${QuickSqliteClient.dbName}: ${e}`);
46
52
  }
47
53
  };
@@ -50,6 +56,9 @@ export class QuickSqliteClient {
50
56
  try {
51
57
  sqlite.close(QuickSqliteClient.dbName);
52
58
  } catch (e) {
59
+ this.logger?.('error', `Error closing database ${QuickSqliteClient.dbName}`, {
60
+ error: e,
61
+ });
53
62
  console.error(`Error closing database ${QuickSqliteClient.dbName}: ${e}`);
54
63
  }
55
64
  };
@@ -64,7 +73,11 @@ export class QuickSqliteClient {
64
73
  QuickSqliteClient.closeDB();
65
74
  } catch (e) {
66
75
  QuickSqliteClient.closeDB();
67
- throw new Error(`Query/queries failed: ${e}`);
76
+ this.logger?.('error', `SqlBatch queries failed`, {
77
+ error: e,
78
+ queries,
79
+ });
80
+ throw new Error(`Queries failed: ${e}`);
68
81
  }
69
82
  };
70
83
 
@@ -77,7 +90,11 @@ export class QuickSqliteClient {
77
90
  return rows ? rows._array : [];
78
91
  } catch (e) {
79
92
  QuickSqliteClient.closeDB();
80
- throw new Error(`Query/queries failed: ${e}: `);
93
+ this.logger?.('error', `Sql single query failed`, {
94
+ error: e,
95
+ query,
96
+ });
97
+ throw new Error(`Query failed: ${e}: `);
81
98
  }
82
99
  };
83
100
 
@@ -86,14 +103,25 @@ export class QuickSqliteClient {
86
103
  `DROP TABLE IF EXISTS ${table}`,
87
104
  [],
88
105
  ]);
89
-
106
+ this.logger?.('info', `Dropping tables`, {
107
+ tables: Object.keys(tables),
108
+ });
90
109
  QuickSqliteClient.executeSqlBatch(queries);
91
110
  };
92
111
 
93
112
  static deleteDatabase = () => {
113
+ this.logger?.('info', `deleteDatabase`, {
114
+ dbLocation: QuickSqliteClient.dbLocation,
115
+ dbname: QuickSqliteClient.dbName,
116
+ });
94
117
  try {
95
118
  sqlite.delete(QuickSqliteClient.dbName, QuickSqliteClient.dbLocation);
96
119
  } catch (e) {
120
+ this.logger?.('error', `Error deleting DB`, {
121
+ dbLocation: QuickSqliteClient.dbLocation,
122
+ dbname: QuickSqliteClient.dbName,
123
+ error: e,
124
+ });
97
125
  throw new Error(`Error deleting DB: ${e}`);
98
126
  }
99
127
 
@@ -110,9 +138,13 @@ export class QuickSqliteClient {
110
138
  const version = QuickSqliteClient.getUserPragmaVersion();
111
139
 
112
140
  if (version !== QuickSqliteClient.dbVersion) {
141
+ QuickSqliteClient.logger?.('info', `DB version mismatch`);
113
142
  QuickSqliteClient.dropTables();
114
143
  QuickSqliteClient.updateUserPragmaVersion(QuickSqliteClient.dbVersion);
115
144
  }
145
+ QuickSqliteClient.logger?.('info', `create tables if not exists`, {
146
+ tables: Object.keys(tables),
147
+ });
116
148
  const q = (Object.keys(tables) as Table[]).reduce<PreparedQueries[]>(
117
149
  (queriesSoFar, tableName) => {
118
150
  queriesSoFar.push(...createCreateTableQuery(tableName));
@@ -125,6 +157,7 @@ export class QuickSqliteClient {
125
157
  };
126
158
 
127
159
  static updateUserPragmaVersion = (version: number) => {
160
+ QuickSqliteClient.logger?.('info', `updateUserPragmaVersion to ${version}`);
128
161
  QuickSqliteClient.openDB();
129
162
  sqlite.execute(DB_NAME, `PRAGMA user_version = ${version}`, []);
130
163
  QuickSqliteClient.closeDB();
@@ -135,6 +168,9 @@ export class QuickSqliteClient {
135
168
  try {
136
169
  const { rows } = sqlite.execute(DB_NAME, `PRAGMA user_version`, []);
137
170
  const result = rows ? rows._array : [];
171
+ this.logger?.('info', `getUserPragmaVersion`, {
172
+ result,
173
+ });
138
174
  QuickSqliteClient.closeDB();
139
175
  return result[0].user_version as number;
140
176
  } catch (e) {
@@ -144,6 +180,7 @@ export class QuickSqliteClient {
144
180
  };
145
181
 
146
182
  static resetDB = () => {
183
+ this.logger?.('info', `resetDB`);
147
184
  QuickSqliteClient.dropTables();
148
185
  QuickSqliteClient.initializeDatabase();
149
186
  };
@@ -4,14 +4,33 @@ import { createDeleteQuery } from '../sqlite-utils/createDeleteQuery';
4
4
  import { createUpsertQuery } from '../sqlite-utils/createUpsertQuery';
5
5
  import type { PendingTask } from '../types';
6
6
 
7
+ /*
8
+ * addPendingTask - Adds a pending task to the database
9
+ *
10
+ * @param {PendingTask} task - The task to add
11
+ *
12
+ * @return {() => void} - A function that can be called to remove the task from the database
13
+ */
7
14
  export const addPendingTask = (task: PendingTask) => {
8
15
  const storable = mapTaskToStorable(task);
16
+ const { channelId, channelType, payload, type } = storable;
9
17
  const query = createUpsertQuery('pendingTasks', storable);
18
+ QuickSqliteClient.logger?.('info', 'addPendingTask', {
19
+ channelId,
20
+ channelType,
21
+ id: task.id,
22
+ type,
23
+ });
10
24
 
11
25
  QuickSqliteClient.executeSql.apply(null, query);
12
26
 
13
27
  return () => {
14
- const { channelId, channelType, payload, type } = storable;
28
+ QuickSqliteClient.logger?.('info', 'deletePendingTaskAfterAddition', {
29
+ channelId,
30
+ channelType,
31
+ id: task.id,
32
+ type,
33
+ });
15
34
  const query = createDeleteQuery('pendingTasks', {
16
35
  channelId,
17
36
  channelType,
@@ -6,6 +6,11 @@ export const deleteChannel = ({ cid, flush = true }: { cid: string; flush?: bool
6
6
  cid,
7
7
  });
8
8
 
9
+ QuickSqliteClient.logger?.('info', 'deleteChannel', {
10
+ cid,
11
+ flush,
12
+ });
13
+
9
14
  if (flush) {
10
15
  QuickSqliteClient.executeSql.apply(null, query);
11
16
  }
@@ -17,6 +17,12 @@ export const deleteMember = ({
17
17
  userId: member.user_id,
18
18
  });
19
19
 
20
+ QuickSqliteClient.logger?.('info', 'deleteMember', {
21
+ cid,
22
+ flush,
23
+ userId: member.user_id,
24
+ });
25
+
20
26
  if (flush) {
21
27
  QuickSqliteClient.executeSql.apply(null, query);
22
28
  }
@@ -5,6 +5,12 @@ export const deleteMessage = ({ flush = true, id }: { id: string; flush?: boolea
5
5
  const query = createDeleteQuery('messages', {
6
6
  id,
7
7
  });
8
+
9
+ QuickSqliteClient.logger?.('info', 'deleteMessage', {
10
+ flush,
11
+ id,
12
+ });
13
+
8
14
  if (flush) {
9
15
  QuickSqliteClient.executeSql.apply(null, query);
10
16
  }
@@ -11,6 +11,12 @@ export const deleteMessagesForChannel = ({
11
11
  const query = createDeleteQuery('messages', {
12
12
  cid,
13
13
  });
14
+
15
+ QuickSqliteClient.logger?.('info', 'deleteMessagesForChannel', {
16
+ cid,
17
+ flush,
18
+ });
19
+
14
20
  if (flush) {
15
21
  QuickSqliteClient.executeSql.apply(null, query);
16
22
  }
@@ -6,6 +6,10 @@ export const deletePendingTask = ({ id }: { id: number }) => {
6
6
  id,
7
7
  });
8
8
 
9
+ QuickSqliteClient.logger?.('info', 'deletePendingTask', {
10
+ id,
11
+ });
12
+
9
13
  QuickSqliteClient.executeSql.apply(null, query);
10
14
 
11
15
  return [query];
@@ -18,6 +18,12 @@ export const deleteReaction = ({
18
18
  userId,
19
19
  });
20
20
 
21
+ QuickSqliteClient.logger?.('info', 'deleteReaction', {
22
+ messageId,
23
+ type: reactionType,
24
+ userId,
25
+ });
26
+
21
27
  if (flush) {
22
28
  QuickSqliteClient.executeSql.apply(null, query);
23
29
  }
@@ -11,13 +11,12 @@ export const deleteReactionsForMessage = ({
11
11
  const query = createDeleteQuery('reactions', {
12
12
  messageId,
13
13
  });
14
+ console.log('deleteReactionsForMessage', {
15
+ flush,
16
+ messageId,
17
+ });
14
18
  if (flush) {
15
- QuickSqliteClient.executeSql.apply(
16
- null,
17
- createDeleteQuery('reactions', {
18
- messageId,
19
- }),
20
- );
19
+ QuickSqliteClient.executeSql.apply(null, query);
21
20
  }
22
21
 
23
22
  return [query];
@@ -1,7 +1,10 @@
1
1
  import { selectChannels } from './queries/selectChannels';
2
2
 
3
+ import { QuickSqliteClient } from '../QuickSqliteClient';
4
+
3
5
  export const getAllChannelIds = () => {
4
6
  const channels = selectChannels();
5
7
 
8
+ QuickSqliteClient.logger?.('info', 'getAllChannelIds');
6
9
  return channels.map((c) => c.cid);
7
10
  };
@@ -8,6 +8,9 @@ export const getAppSettings = ({
8
8
  }: {
9
9
  currentUserId: string;
10
10
  }): AppSettingsAPIResponse => {
11
+ QuickSqliteClient.logger?.('info', 'getAppSettings', {
12
+ currentUserId,
13
+ });
11
14
  const result = QuickSqliteClient.executeSql.apply(
12
15
  null,
13
16
  createSelectQuery('userSyncStatus', ['*'], {
@@ -7,6 +7,7 @@ import { selectReactionsForMessages } from './queries/selectReactionsForMessages
7
7
  import type { DefaultStreamChatGenerics } from '../../types/types';
8
8
  import { isBlockedMessage } from '../../utils/utils';
9
9
  import { mapStorableToMessage } from '../mappers/mapStorableToMessage';
10
+ import { QuickSqliteClient } from '../QuickSqliteClient';
10
11
  import type { TableRowJoinedUser } from '../types';
11
12
 
12
13
  export const getChannelMessages = <
@@ -18,6 +19,10 @@ export const getChannelMessages = <
18
19
  channelIds: string[];
19
20
  currentUserId: string;
20
21
  }) => {
22
+ QuickSqliteClient.logger?.('info', 'getChannelMessages', {
23
+ channelIds,
24
+ currentUserId,
25
+ });
21
26
  const messageRows = selectMessagesForChannels(channelIds);
22
27
  const messageIds = messageRows.map(({ id }) => id);
23
28
 
@@ -7,6 +7,7 @@ import { selectChannels } from './queries/selectChannels';
7
7
 
8
8
  import type { DefaultStreamChatGenerics } from '../../types/types';
9
9
  import { mapStorableToChannel } from '../mappers/mapStorableToChannel';
10
+ import { QuickSqliteClient } from '../QuickSqliteClient';
10
11
 
11
12
  /**
12
13
  * Returns the list of channels with state enriched for given channel ids.
@@ -26,6 +27,7 @@ export const getChannels = <
26
27
  channelIds: string[];
27
28
  currentUserId: string;
28
29
  }): Omit<ChannelAPIResponse<StreamChatGenerics>, 'duration'>[] => {
30
+ QuickSqliteClient.logger?.('info', 'getChannels', { channelIds, currentUserId });
29
31
  const channels = selectChannels({ channelIds });
30
32
 
31
33
  const cidVsMembers = getMembers<StreamChatGenerics>({ channelIds });
@@ -4,6 +4,8 @@ import type { ChannelAPIResponse, ChannelFilters, ChannelSort } from 'stream-cha
4
4
  import { getChannels } from './getChannels';
5
5
  import { selectChannelIdsForFilterSort } from './queries/selectChannelIdsForFilterSort';
6
6
 
7
+ import { QuickSqliteClient } from '../QuickSqliteClient';
8
+
7
9
  /**
8
10
  * Gets the channels from database for given filter and sort query.
9
11
  *
@@ -30,6 +32,8 @@ export const getChannelsForFilterSort = <
30
32
  return null;
31
33
  }
32
34
 
35
+ QuickSqliteClient.logger?.('info', 'getChannelsForFilterSort', { filters, sort });
36
+
33
37
  const channelIds = selectChannelIdsForFilterSort({ filters, sort });
34
38
 
35
39
  if (!channelIds) return null;
@@ -6,6 +6,7 @@ export const getLastSyncedAt = ({
6
6
  }: {
7
7
  currentUserId: string;
8
8
  }): number | undefined => {
9
+ QuickSqliteClient.logger?.('info', 'getLastSyncedAt', { currentUserId });
9
10
  const result = QuickSqliteClient.executeSql.apply(
10
11
  null,
11
12
  createSelectQuery('userSyncStatus', ['*'], {
@@ -4,6 +4,7 @@ import { selectMembersForChannels } from './queries/selectMembersForChannels';
4
4
 
5
5
  import type { DefaultStreamChatGenerics } from '../../types/types';
6
6
  import { mapStorableToMember } from '../mappers/mapStorableToMember';
7
+ import { QuickSqliteClient } from '../QuickSqliteClient';
7
8
 
8
9
  export const getMembers = <
9
10
  StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
@@ -12,6 +13,7 @@ export const getMembers = <
12
13
  }: {
13
14
  channelIds: string[];
14
15
  }) => {
16
+ QuickSqliteClient.logger?.('info', 'getMembers', { channelIds });
15
17
  const memberRows = selectMembersForChannels(channelIds);
16
18
  const cidVsMembers: Record<string, ChannelMemberResponse<StreamChatGenerics>[]> = {};
17
19
  memberRows.forEach((member) => {
@@ -8,6 +8,7 @@ export const getPendingTasks = (conditions: { messageId?: string } = {}) => {
8
8
  createdAt: 1,
9
9
  });
10
10
 
11
+ QuickSqliteClient.logger?.('info', 'getPendingTasks', { conditions });
11
12
  const result = QuickSqliteClient.executeSql.apply(null, query);
12
13
 
13
14
  return result.map((r: TableRowJoinedUser<'pendingTasks'>) => mapStorableToTask(r));
@@ -4,6 +4,7 @@ import { selectReadsForChannels } from './queries/selectReadsForChannels';
4
4
 
5
5
  import type { DefaultStreamChatGenerics } from '../../types/types';
6
6
  import { mapStorableToRead } from '../mappers/mapStorableToRead';
7
+ import { QuickSqliteClient } from '../QuickSqliteClient';
7
8
 
8
9
  export const getReads = <
9
10
  StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
@@ -12,6 +13,7 @@ export const getReads = <
12
13
  }: {
13
14
  channelIds: string[];
14
15
  }) => {
16
+ QuickSqliteClient.logger?.('info', 'getReads', { channelIds });
15
17
  const reads = selectReadsForChannels(channelIds);
16
18
  const cidVsReads: Record<string, ReadResponse<StreamChatGenerics>[]> = {};
17
19