Eliminate orphaned external message files on startup
Attachments, visual attachment thumbnails, video attachment screenshots Quote thumbnails Contact avatars
This commit is contained in:
parent
44dec45995
commit
6e193456f9
5 changed files with 140 additions and 3 deletions
|
@ -34,6 +34,7 @@ module.exports = {
|
|||
close,
|
||||
removeDB,
|
||||
|
||||
getMessageCount,
|
||||
saveMessage,
|
||||
saveLegacyMessage,
|
||||
saveMessages,
|
||||
|
@ -201,6 +202,10 @@ async function removeDB() {
|
|||
await channels.removeDB();
|
||||
}
|
||||
|
||||
async function getMessageCount() {
|
||||
return channels.getMessageCount();
|
||||
}
|
||||
|
||||
async function saveMessage(data, { forceSave, Message } = {}) {
|
||||
const id = await channels.saveMessage(_cleanData(data), { forceSave });
|
||||
Message.refreshExpirationTimer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue