mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 07:36:00 +01:00
Init local state for remote megaphones
This commit is contained in:
@@ -52,6 +52,7 @@ import {
|
||||
deleteAllBadges,
|
||||
deleteAllDownloads,
|
||||
deleteAllDraftAttachments,
|
||||
deleteAllMegaphones,
|
||||
deleteAllStickers,
|
||||
deleteStaleDownloads,
|
||||
getAllAttachments,
|
||||
@@ -298,6 +299,11 @@ async function cleanupOrphanedAttachments({
|
||||
pathsToKeep: await sql.sqlRead('getAllBadgeImageFileLocalPaths'),
|
||||
});
|
||||
|
||||
await deleteAllMegaphones({
|
||||
userDataPath,
|
||||
pathsToKeep: await sql.sqlRead('getAllMegaphoneImageLocalPaths'),
|
||||
});
|
||||
|
||||
const allStickers = await getAllStickers(userDataPath);
|
||||
const orphanedStickers = await sql.sqlWrite(
|
||||
'removeKnownStickers',
|
||||
|
||||
Reference in New Issue
Block a user