From df27fa1b82ba3c7f2a7cea92a438b9696ca92562 Mon Sep 17 00:00:00 2001 From: William Grant Date: Thu, 18 May 2023 15:49:34 +1000 Subject: [PATCH] fix: cleanup comments --- ts/node/migration/sessionMigrations.ts | 1 + ts/node/sql.ts | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ts/node/migration/sessionMigrations.ts b/ts/node/migration/sessionMigrations.ts index af934f55c..08cc0dce0 100644 --- a/ts/node/migration/sessionMigrations.ts +++ b/ts/node/migration/sessionMigrations.ts @@ -1243,6 +1243,7 @@ function updateToSessionSchemaVersion30(currentVersion: number, db: BetterSqlite WHERE type = 'private' AND expireTimer > 0;` ).run({ expirationType: 'deleteAfterRead' }); + // TODO Audric update this to support model changes for closed groups db.prepare( `UPDATE ${CONVERSATIONS_TABLE} SET expirationType = $expirationType diff --git a/ts/node/sql.ts b/ts/node/sql.ts index 5e92171d1..c36626911 100644 --- a/ts/node/sql.ts +++ b/ts/node/sql.ts @@ -1470,8 +1470,6 @@ function getSeenMessagesByHashList(hashes: Array) { function getExpiredMessages() { const now = Date.now(); - - // TODO probably need to update and also add functions to find specific kinds of disappearing messages const rows = assertGlobalInstance() .prepare( `SELECT json FROM ${MESSAGES_TABLE} WHERE @@ -1503,7 +1501,6 @@ function getOutgoingWithoutExpiresAt() { return map(rows, row => jsonToObject(row.json)); } -// TODO Maybe we need different queries for the different modes? function getNextExpiringMessage() { const rows = assertGlobalInstance() .prepare(