Display user badges
This commit is contained in:
parent
927c22ef73
commit
f647c4e053
95 changed files with 2891 additions and 424 deletions
|
@ -292,6 +292,7 @@ function prepareUrl(
|
|||
buildExpiration: config.get<number | undefined>('buildExpiration'),
|
||||
serverUrl: config.get<string>('serverUrl'),
|
||||
storageUrl: config.get<string>('storageUrl'),
|
||||
updatesUrl: config.get<string>('updatesUrl'),
|
||||
directoryUrl: config.get<string>('directoryUrl'),
|
||||
directoryEnclaveId: config.get<string>('directoryEnclaveId'),
|
||||
directoryTrustAnchor: config.get<string>('directoryTrustAnchor'),
|
||||
|
@ -1557,6 +1558,11 @@ app.on('ready', async () => {
|
|||
attachments: orphanedAttachments,
|
||||
});
|
||||
|
||||
await attachments.deleteAllBadges({
|
||||
userDataPath,
|
||||
pathsToKeep: await sql.sqlCall('getAllBadgeImageFileLocalPaths', []),
|
||||
});
|
||||
|
||||
const allStickers = await attachments.getAllStickers(userDataPath);
|
||||
const orphanedStickers = await sql.sqlCall('removeKnownStickers', [
|
||||
allStickers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue