mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 07:36:00 +01:00
Update release note fetcher to delete unknown saved megaphones
This commit is contained in:
@@ -75,6 +75,15 @@ export function getAllMegaphones(
|
||||
.map(row => rowToMegaphone(row));
|
||||
}
|
||||
|
||||
export function getAllMegaphoneIds(
|
||||
db: ReadableDB
|
||||
): ReadonlyArray<RemoteMegaphoneId> {
|
||||
const [query, params] = sql`
|
||||
SELECT id FROM megaphones
|
||||
`;
|
||||
return db.prepare(query, { pluck: true }).all<RemoteMegaphoneId>(params);
|
||||
}
|
||||
|
||||
function _insertMegaphone(
|
||||
db: WritableDB,
|
||||
megaphone: RemoteMegaphoneType
|
||||
|
||||
Reference in New Issue
Block a user