fix: cleanup comments

pull/2660/head
William Grant 3 years ago
parent 5d4238a3d8
commit df27fa1b82

@ -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

@ -1470,8 +1470,6 @@ function getSeenMessagesByHashList(hashes: Array<string>) {
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(

Loading…
Cancel
Save