stream-chat-react-native-core 5.26.0-beta.5 → 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/components/Channel/Channel.js +14 -21
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/i18n/es.json +15 -15
- package/lib/commonjs/i18n/fr.json +15 -15
- package/lib/commonjs/i18n/he.json +15 -15
- package/lib/commonjs/i18n/hi.json +15 -15
- package/lib/commonjs/i18n/it.json +15 -15
- package/lib/commonjs/i18n/ja.json +15 -15
- package/lib/commonjs/i18n/ko.json +15 -15
- package/lib/commonjs/i18n/nl.json +16 -16
- package/lib/commonjs/i18n/pt-BR.json +16 -16
- package/lib/commonjs/i18n/ru.json +16 -16
- package/lib/commonjs/i18n/tr.json +16 -16
- 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/components/Channel/Channel.js +14 -21
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/i18n/es.json +15 -15
- package/lib/module/i18n/fr.json +15 -15
- package/lib/module/i18n/he.json +15 -15
- package/lib/module/i18n/hi.json +15 -15
- package/lib/module/i18n/it.json +15 -15
- package/lib/module/i18n/ja.json +15 -15
- package/lib/module/i18n/ko.json +15 -15
- package/lib/module/i18n/nl.json +16 -16
- package/lib/module/i18n/pt-BR.json +16 -16
- package/lib/module/i18n/ru.json +16 -16
- package/lib/module/i18n/tr.json +16 -16
- 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/es.json +15 -15
- package/lib/typescript/i18n/fr.json +15 -15
- package/lib/typescript/i18n/he.json +15 -15
- package/lib/typescript/i18n/hi.json +15 -15
- package/lib/typescript/i18n/it.json +15 -15
- package/lib/typescript/i18n/ja.json +15 -15
- package/lib/typescript/i18n/ko.json +15 -15
- package/lib/typescript/i18n/nl.json +16 -16
- package/lib/typescript/i18n/pt-BR.json +16 -16
- package/lib/typescript/i18n/ru.json +16 -16
- package/lib/typescript/i18n/tr.json +16 -16
- 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/components/Channel/Channel.tsx +9 -8
- package/src/i18n/es.json +15 -15
- package/src/i18n/fr.json +15 -15
- package/src/i18n/he.json +15 -15
- package/src/i18n/hi.json +15 -15
- package/src/i18n/it.json +15 -15
- package/src/i18n/ja.json +15 -15
- package/src/i18n/ko.json +15 -15
- package/src/i18n/nl.json +16 -16
- package/src/i18n/pt-BR.json +16 -16
- package/src/i18n/ru.json +16 -16
- package/src/i18n/tr.json +16 -16
- 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/ko.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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": "",
|
|
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,7 +13,7 @@
|
|
|
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
19
|
"Editing Message": "",
|
|
@@ -35,27 +35,27 @@
|
|
|
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
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
42
|
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "
|
|
46
|
-
"Open Settings": "",
|
|
47
|
-
"Photo": "",
|
|
48
|
-
"Photos and Videos": "",
|
|
45
|
+
"Only visible to you": "",
|
|
46
|
+
"Open Settings": "설정 열기",
|
|
47
|
+
"Photo": "사진",
|
|
48
|
+
"Photos and Videos": "사진과 동영상",
|
|
49
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
54
|
"Reply": "",
|
|
55
55
|
"Reply to Message": "",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
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,16 +63,16 @@
|
|
|
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
|
-
"Video": "",
|
|
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/nl.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
2
|
+
"1 Reply": "1 Antwoord",
|
|
3
3
|
"1 Thread Reply": "",
|
|
4
|
-
"Allow access to your Gallery": "",
|
|
5
|
-
"Allow camera access in device settings": "",
|
|
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": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "",
|
|
8
8
|
"Are you sure?": "",
|
|
@@ -13,7 +13,7 @@
|
|
|
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.": "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?": "",
|
|
18
18
|
"Edit Message": "",
|
|
19
19
|
"Editing Message": "",
|
|
@@ -35,27 +35,27 @@
|
|
|
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
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
42
|
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "
|
|
46
|
-
"Open Settings": "",
|
|
47
|
-
"Photo": "",
|
|
48
|
-
"Photos and Videos": "",
|
|
45
|
+
"Only visible to you": "",
|
|
46
|
+
"Open Settings": "Open instellingen",
|
|
47
|
+
"Photo": "Foto",
|
|
48
|
+
"Photos and Videos": "Foto's en video's",
|
|
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.": "Schakel toegang tot uw foto's en video's in zodat u ze kunt delen.",
|
|
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": "",
|
|
58
|
-
"Select More Photos": "",
|
|
58
|
+
"Select More Photos": "Selecteer Meer foto's",
|
|
59
59
|
"Send Anyway": "",
|
|
60
60
|
"Send a message": "",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
65
65
|
"Unblock User": "",
|
|
66
|
-
"Unknown User": "",
|
|
66
|
+
"Unknown User": "Onbekende gebruiker",
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
69
|
"Unread Messages": "",
|
|
70
|
-
"Video": "",
|
|
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 }} en {{ nonSelfUserLength }} anderen zijn aan het typen",
|
|
74
|
-
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "",
|
|
74
|
+
"{{ index }} of {{ photoLength }}": "{{ index }} van {{ photoLength }}",
|
|
75
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Antwoorden",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} is aan het typen",
|
|
78
78
|
"🏙 Attachment...": ""
|
package/src/i18n/pt-BR.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"1 Reply": "",
|
|
2
|
+
"1 Reply": "1 Resposta",
|
|
3
3
|
"1 Thread Reply": "",
|
|
4
|
-
"Allow access to your Gallery": "",
|
|
5
|
-
"Allow camera access in device settings": "",
|
|
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": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "",
|
|
8
8
|
"Are you sure?": "",
|
|
@@ -13,7 +13,7 @@
|
|
|
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.": "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?": "",
|
|
18
18
|
"Edit Message": "",
|
|
19
19
|
"Editing Message": "",
|
|
@@ -35,27 +35,27 @@
|
|
|
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
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
42
|
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "
|
|
46
|
-
"Open Settings": "",
|
|
47
|
-
"Photo": "",
|
|
48
|
-
"Photos and Videos": "",
|
|
45
|
+
"Only visible to you": "",
|
|
46
|
+
"Open Settings": "Abrir Configurações",
|
|
47
|
+
"Photo": "Foto",
|
|
48
|
+
"Photos and Videos": "Fotos e Vídeos",
|
|
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.": "Por favor, habilite o acesso às suas fotos e vídeos para poder compartilhá-los.",
|
|
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": "",
|
|
58
|
-
"Select More Photos": "",
|
|
58
|
+
"Select More Photos": "Selecionar Mais Fotos",
|
|
59
59
|
"Send Anyway": "",
|
|
60
60
|
"Send a message": "",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
65
65
|
"Unblock User": "",
|
|
66
|
-
"Unknown User": "",
|
|
66
|
+
"Unknown User": "Usuário Desconhecido",
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
69
|
"Unread Messages": "",
|
|
70
|
-
"Video": "",
|
|
70
|
+
"Video": "Vídeo",
|
|
71
71
|
"You": "",
|
|
72
72
|
"You can't send messages in this channel": "",
|
|
73
73
|
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} e mais {{ nonSelfUserLength }} pessoa(s) estão digitando",
|
|
74
|
-
"{{ index }} of {{ photoLength }}": "",
|
|
75
|
-
"{{ replyCount }} Replies": "",
|
|
74
|
+
"{{ index }} of {{ photoLength }}": "{{ index }} de {{ photoLength }}",
|
|
75
|
+
"{{ replyCount }} Replies": "{{ replyCount }} Respostas",
|
|
76
76
|
"{{ replyCount }} Thread Replies": "",
|
|
77
77
|
"{{ user }} is typing": "{{ user }} está digitando",
|
|
78
78
|
"🏙 Attachment...": ""
|
package/src/i18n/ru.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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": "",
|
|
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,7 +13,7 @@
|
|
|
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
19
|
"Editing Message": "",
|
|
@@ -35,27 +35,27 @@
|
|
|
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
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
42
|
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "
|
|
46
|
-
"Open Settings": "",
|
|
47
|
-
"Photo": "",
|
|
48
|
-
"Photos and Videos": "",
|
|
45
|
+
"Only visible to you": "",
|
|
46
|
+
"Open Settings": "Открыть настройки",
|
|
47
|
+
"Photo": "Фото",
|
|
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": "",
|
|
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,16 +63,16 @@
|
|
|
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
|
-
"Video": "",
|
|
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,8 +1,8 @@
|
|
|
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": "",
|
|
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": "",
|
|
7
7
|
"Are you sure you want to permanently delete this message?": "",
|
|
8
8
|
"Are you sure?": "",
|
|
@@ -13,7 +13,7 @@
|
|
|
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.": "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?": "",
|
|
18
18
|
"Edit Message": "",
|
|
19
19
|
"Editing Message": "",
|
|
@@ -35,27 +35,27 @@
|
|
|
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
40
|
"Message flagged": "",
|
|
41
41
|
"Mute User": "",
|
|
42
42
|
"Not supported": "",
|
|
43
43
|
"Nothing yet...": "",
|
|
44
44
|
"Ok": "",
|
|
45
|
-
"Only visible to you": "
|
|
46
|
-
"Open Settings": "",
|
|
47
|
-
"Photo": "",
|
|
48
|
-
"Photos and Videos": "",
|
|
45
|
+
"Only visible to you": "",
|
|
46
|
+
"Open Settings": "Ayarları aç",
|
|
47
|
+
"Photo": "Fotoğraf",
|
|
48
|
+
"Photos and Videos": "Fotoğraflar ve Videolar",
|
|
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.": "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
54
|
"Reply": "",
|
|
55
55
|
"Reply to Message": "",
|
|
56
56
|
"Resend": "",
|
|
57
57
|
"Search GIFs": "",
|
|
58
|
-
"Select More Photos": "",
|
|
58
|
+
"Select More Photos": "Daha Fazla Fotoğraf Seçin",
|
|
59
59
|
"Send Anyway": "",
|
|
60
60
|
"Send a message": "",
|
|
61
61
|
"Sending links is not allowed in this conversation": "",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"The message has been reported to a moderator.": "",
|
|
64
64
|
"Thread Reply": "",
|
|
65
65
|
"Unblock User": "",
|
|
66
|
-
"Unknown User": "",
|
|
66
|
+
"Unknown User": "Bilinmeyen kullanıcı",
|
|
67
67
|
"Unmute User": "",
|
|
68
68
|
"Unpin from Conversation": "",
|
|
69
69
|
"Unread Messages": "",
|
|
70
|
-
"Video": "",
|
|
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
|
};
|