Move SignalProtocolStore to TypeScript
This commit is contained in:
parent
5de4babc0d
commit
7e629edd21
14 changed files with 1291 additions and 1066 deletions
|
@ -1226,7 +1226,7 @@ async function updateUnprocessedsWithData(array: Array<UnprocessedType>) {
|
|||
await channels.updateUnprocessedsWithData(array);
|
||||
}
|
||||
|
||||
async function removeUnprocessed(id: string) {
|
||||
async function removeUnprocessed(id: string | Array<string>) {
|
||||
await channels.removeUnprocessed(id);
|
||||
}
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ export type DataInterface = {
|
|||
arrayOfUnprocessed: Array<UnprocessedType>,
|
||||
options?: { forceSave?: boolean }
|
||||
) => Promise<void>;
|
||||
removeUnprocessed: (id: string) => Promise<void>;
|
||||
removeUnprocessed: (id: string | Array<string>) => Promise<void>;
|
||||
removeAllUnprocessed: () => Promise<void>;
|
||||
|
||||
getNextAttachmentDownloadJobs: (
|
||||
|
|
|
@ -3410,7 +3410,7 @@ async function getAllUnprocessed() {
|
|||
return rows;
|
||||
}
|
||||
|
||||
async function removeUnprocessed(id: string) {
|
||||
async function removeUnprocessed(id: string | Array<string>) {
|
||||
const db = getInstance();
|
||||
|
||||
if (!Array.isArray(id)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue