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.
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/es.json +47 -47
- package/lib/commonjs/i18n/fr.json +47 -47
- package/lib/commonjs/i18n/he.json +47 -47
- package/lib/commonjs/i18n/hi.json +47 -47
- package/lib/commonjs/i18n/it.json +47 -47
- package/lib/commonjs/i18n/ja.json +47 -47
- package/lib/commonjs/i18n/ko.json +47 -47
- package/lib/commonjs/i18n/nl.json +46 -46
- package/lib/commonjs/i18n/pt-BR.json +46 -46
- package/lib/commonjs/i18n/ru.json +46 -46
- package/lib/commonjs/i18n/tr.json +46 -46
- package/lib/commonjs/store/QuickSqliteClient.js +37 -2
- package/lib/commonjs/store/QuickSqliteClient.js.map +1 -1
- package/lib/commonjs/store/apis/addPendingTask.js +16 -4
- package/lib/commonjs/store/apis/addPendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteChannel.js +4 -0
- package/lib/commonjs/store/apis/deleteChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMember.js +5 -0
- package/lib/commonjs/store/apis/deleteMember.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessage.js +4 -0
- package/lib/commonjs/store/apis/deleteMessage.js.map +1 -1
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js +4 -0
- package/lib/commonjs/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/commonjs/store/apis/deletePendingTask.js +3 -0
- package/lib/commonjs/store/apis/deletePendingTask.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReaction.js +5 -0
- package/lib/commonjs/store/apis/deleteReaction.js.map +1 -1
- package/lib/commonjs/store/apis/deleteReactions.js +5 -3
- package/lib/commonjs/store/apis/deleteReactions.js.map +1 -1
- package/lib/commonjs/store/apis/getAllChannelIds.js +2 -0
- package/lib/commonjs/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/commonjs/store/apis/getAppSettings.js +3 -0
- package/lib/commonjs/store/apis/getAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelMessages.js +5 -0
- package/lib/commonjs/store/apis/getChannelMessages.js.map +1 -1
- package/lib/commonjs/store/apis/getChannels.js +5 -0
- package/lib/commonjs/store/apis/getChannels.js.map +1 -1
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js +5 -0
- package/lib/commonjs/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/getLastSyncedAt.js +3 -0
- package/lib/commonjs/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/commonjs/store/apis/getMembers.js +4 -0
- package/lib/commonjs/store/apis/getMembers.js.map +1 -1
- package/lib/commonjs/store/apis/getPendingTasks.js +3 -0
- package/lib/commonjs/store/apis/getPendingTasks.js.map +1 -1
- package/lib/commonjs/store/apis/getReads.js +4 -0
- package/lib/commonjs/store/apis/getReads.js.map +1 -1
- package/lib/commonjs/store/apis/insertReaction.js +6 -1
- package/lib/commonjs/store/apis/insertReaction.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js +3 -0
- package/lib/commonjs/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectChannels.js +3 -0
- package/lib/commonjs/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js +3 -0
- package/lib/commonjs/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js +3 -0
- package/lib/commonjs/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js +3 -0
- package/lib/commonjs/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js +3 -0
- package/lib/commonjs/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/commonjs/store/apis/updateMessage.js +18 -4
- package/lib/commonjs/store/apis/updateMessage.js.map +1 -1
- package/lib/commonjs/store/apis/updateReaction.js +12 -1
- package/lib/commonjs/store/apis/updateReaction.js.map +1 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js +7 -1
- package/lib/commonjs/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannelData.js +6 -1
- package/lib/commonjs/store/apis/upsertChannelData.js.map +1 -1
- package/lib/commonjs/store/apis/upsertChannels.js +6 -3
- package/lib/commonjs/store/apis/upsertChannels.js.map +1 -1
- package/lib/commonjs/store/apis/upsertCidsForQuery.js +12 -5
- package/lib/commonjs/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMembers.js +15 -3
- package/lib/commonjs/store/apis/upsertMembers.js.map +1 -1
- package/lib/commonjs/store/apis/upsertMessages.js +20 -8
- package/lib/commonjs/store/apis/upsertMessages.js.map +1 -1
- package/lib/commonjs/store/apis/upsertReads.js +18 -3
- package/lib/commonjs/store/apis/upsertReads.js.map +1 -1
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js +4 -0
- package/lib/commonjs/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/es.json +47 -47
- package/lib/module/i18n/fr.json +47 -47
- package/lib/module/i18n/he.json +47 -47
- package/lib/module/i18n/hi.json +47 -47
- package/lib/module/i18n/it.json +47 -47
- package/lib/module/i18n/ja.json +47 -47
- package/lib/module/i18n/ko.json +47 -47
- package/lib/module/i18n/nl.json +46 -46
- package/lib/module/i18n/pt-BR.json +46 -46
- package/lib/module/i18n/ru.json +46 -46
- package/lib/module/i18n/tr.json +46 -46
- package/lib/module/store/QuickSqliteClient.js +37 -2
- package/lib/module/store/QuickSqliteClient.js.map +1 -1
- package/lib/module/store/apis/addPendingTask.js +16 -4
- package/lib/module/store/apis/addPendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteChannel.js +4 -0
- package/lib/module/store/apis/deleteChannel.js.map +1 -1
- package/lib/module/store/apis/deleteMember.js +5 -0
- package/lib/module/store/apis/deleteMember.js.map +1 -1
- package/lib/module/store/apis/deleteMessage.js +4 -0
- package/lib/module/store/apis/deleteMessage.js.map +1 -1
- package/lib/module/store/apis/deleteMessagesForChannel.js +4 -0
- package/lib/module/store/apis/deleteMessagesForChannel.js.map +1 -1
- package/lib/module/store/apis/deletePendingTask.js +3 -0
- package/lib/module/store/apis/deletePendingTask.js.map +1 -1
- package/lib/module/store/apis/deleteReaction.js +5 -0
- package/lib/module/store/apis/deleteReaction.js.map +1 -1
- package/lib/module/store/apis/deleteReactions.js +5 -3
- package/lib/module/store/apis/deleteReactions.js.map +1 -1
- package/lib/module/store/apis/getAllChannelIds.js +2 -0
- package/lib/module/store/apis/getAllChannelIds.js.map +1 -1
- package/lib/module/store/apis/getAppSettings.js +3 -0
- package/lib/module/store/apis/getAppSettings.js.map +1 -1
- package/lib/module/store/apis/getChannelMessages.js +5 -0
- package/lib/module/store/apis/getChannelMessages.js.map +1 -1
- package/lib/module/store/apis/getChannels.js +5 -0
- package/lib/module/store/apis/getChannels.js.map +1 -1
- package/lib/module/store/apis/getChannelsForFilterSort.js +5 -0
- package/lib/module/store/apis/getChannelsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/getLastSyncedAt.js +3 -0
- package/lib/module/store/apis/getLastSyncedAt.js.map +1 -1
- package/lib/module/store/apis/getMembers.js +4 -0
- package/lib/module/store/apis/getMembers.js.map +1 -1
- package/lib/module/store/apis/getPendingTasks.js +3 -0
- package/lib/module/store/apis/getPendingTasks.js.map +1 -1
- package/lib/module/store/apis/getReads.js +4 -0
- package/lib/module/store/apis/getReads.js.map +1 -1
- package/lib/module/store/apis/insertReaction.js +6 -1
- package/lib/module/store/apis/insertReaction.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js +3 -0
- package/lib/module/store/apis/queries/selectChannelIdsForFilterSort.js.map +1 -1
- package/lib/module/store/apis/queries/selectChannels.js +3 -0
- package/lib/module/store/apis/queries/selectChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMembersForChannels.js +3 -0
- package/lib/module/store/apis/queries/selectMembersForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectMessagesForChannels.js +3 -0
- package/lib/module/store/apis/queries/selectMessagesForChannels.js.map +1 -1
- package/lib/module/store/apis/queries/selectReactionsForMessages.js +3 -0
- package/lib/module/store/apis/queries/selectReactionsForMessages.js.map +1 -1
- package/lib/module/store/apis/queries/selectReadsForChannels.js +3 -0
- package/lib/module/store/apis/queries/selectReadsForChannels.js.map +1 -1
- package/lib/module/store/apis/updateMessage.js +18 -4
- package/lib/module/store/apis/updateMessage.js.map +1 -1
- package/lib/module/store/apis/updateReaction.js +12 -1
- package/lib/module/store/apis/updateReaction.js.map +1 -1
- package/lib/module/store/apis/upsertAppSettings.js +7 -1
- package/lib/module/store/apis/upsertAppSettings.js.map +1 -1
- package/lib/module/store/apis/upsertChannelData.js +6 -1
- package/lib/module/store/apis/upsertChannelData.js.map +1 -1
- package/lib/module/store/apis/upsertChannels.js +6 -3
- package/lib/module/store/apis/upsertChannels.js.map +1 -1
- package/lib/module/store/apis/upsertCidsForQuery.js +12 -5
- package/lib/module/store/apis/upsertCidsForQuery.js.map +1 -1
- package/lib/module/store/apis/upsertMembers.js +15 -3
- package/lib/module/store/apis/upsertMembers.js.map +1 -1
- package/lib/module/store/apis/upsertMessages.js +20 -8
- package/lib/module/store/apis/upsertMessages.js.map +1 -1
- package/lib/module/store/apis/upsertReads.js +18 -3
- package/lib/module/store/apis/upsertReads.js.map +1 -1
- package/lib/module/store/apis/upsertUserSyncStatus.js +4 -0
- package/lib/module/store/apis/upsertUserSyncStatus.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +1 -1
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/es.json +47 -47
- package/lib/typescript/i18n/fr.json +47 -47
- package/lib/typescript/i18n/he.json +47 -47
- package/lib/typescript/i18n/hi.json +47 -47
- package/lib/typescript/i18n/it.json +47 -47
- package/lib/typescript/i18n/ja.json +47 -47
- package/lib/typescript/i18n/ko.json +47 -47
- package/lib/typescript/i18n/nl.json +46 -46
- package/lib/typescript/i18n/pt-BR.json +46 -46
- package/lib/typescript/i18n/ru.json +46 -46
- package/lib/typescript/i18n/tr.json +46 -46
- package/lib/typescript/store/QuickSqliteClient.d.ts +2 -0
- package/lib/typescript/store/apis/upsertMessages.d.ts +1 -2
- package/package.json +1 -1
- package/src/i18n/en.json +1 -1
- package/src/i18n/es.json +47 -47
- package/src/i18n/fr.json +47 -47
- package/src/i18n/he.json +47 -47
- package/src/i18n/hi.json +47 -47
- package/src/i18n/it.json +47 -47
- package/src/i18n/ja.json +47 -47
- package/src/i18n/ko.json +47 -47
- package/src/i18n/nl.json +46 -46
- package/src/i18n/pt-BR.json +46 -46
- package/src/i18n/ru.json +46 -46
- package/src/i18n/tr.json +46 -46
- package/src/store/QuickSqliteClient.ts +40 -3
- package/src/store/apis/addPendingTask.ts +20 -1
- package/src/store/apis/deleteChannel.ts +5 -0
- package/src/store/apis/deleteMember.ts +6 -0
- package/src/store/apis/deleteMessage.ts +6 -0
- package/src/store/apis/deleteMessagesForChannel.ts +6 -0
- package/src/store/apis/deletePendingTask.ts +4 -0
- package/src/store/apis/deleteReaction.ts +6 -0
- package/src/store/apis/deleteReactions.ts +5 -6
- package/src/store/apis/getAllChannelIds.ts +3 -0
- package/src/store/apis/getAppSettings.ts +3 -0
- package/src/store/apis/getChannelMessages.ts +5 -0
- package/src/store/apis/getChannels.ts +2 -0
- package/src/store/apis/getChannelsForFilterSort.ts +4 -0
- package/src/store/apis/getLastSyncedAt.ts +1 -0
- package/src/store/apis/getMembers.ts +2 -0
- package/src/store/apis/getPendingTasks.ts +1 -0
- package/src/store/apis/getReads.ts +2 -0
- package/src/store/apis/insertReaction.ts +8 -1
- package/src/store/apis/queries/selectChannelIdsForFilterSort.ts +5 -0
- package/src/store/apis/queries/selectChannels.ts +4 -0
- package/src/store/apis/queries/selectMembersForChannels.ts +4 -0
- package/src/store/apis/queries/selectMessagesForChannels.ts +4 -0
- package/src/store/apis/queries/selectReactionsForMessages.ts +4 -0
- package/src/store/apis/queries/selectReadsForChannels.ts +5 -0
- package/src/store/apis/updateMessage.ts +22 -4
- package/src/store/apis/updateReaction.ts +15 -1
- package/src/store/apis/upsertAppSettings.ts +8 -1
- package/src/store/apis/upsertChannelData.ts +6 -1
- package/src/store/apis/upsertChannels.ts +6 -1
- package/src/store/apis/upsertCidsForQuery.ts +10 -2
- package/src/store/apis/upsertMembers.ts +16 -10
- package/src/store/apis/upsertMessages.ts +21 -11
- package/src/store/apis/upsertReads.ts +13 -10
- package/src/store/apis/upsertUserSyncStatus.ts +5 -0
- 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": "
|
|
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": "
|
|
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": "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": "
|
|
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": "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": "
|
|
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": "Ayarları aç",
|
|
47
47
|
"Photo": "Fotoğraf",
|
|
48
|
-
"Photos and Videos": "",
|
|
49
|
-
"Pin to Conversation": "
|
|
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": "
|
|
55
|
-
"Reply to Message": "
|
|
56
|
-
"Resend": "
|
|
57
|
-
"Search GIFs": "
|
|
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": "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": "
|
|
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": "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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
@@ -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
|
}
|
|
@@ -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
|
|