mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-06 12:44:30 +08:00
[local-sync] properly save folders when detecting thread
This commit is contained in:
parent
ac818f30fe
commit
20be7cc513
1 changed files with 1 additions and 3 deletions
|
@ -145,9 +145,7 @@ function detectThread({db, message}) {
|
||||||
if (!isSent && ((message.date > thread.lastMessageReceivedDate) || !thread.lastMessageReceivedDate)) {
|
if (!isSent && ((message.date > thread.lastMessageReceivedDate) || !thread.lastMessageReceivedDate)) {
|
||||||
thread.lastMessageReceivedDate = message.date;
|
thread.lastMessageReceivedDate = message.date;
|
||||||
}
|
}
|
||||||
if (!thread.folders.find(f => f.id === message.folderId)) {
|
|
||||||
thread.folders.push(message.folder)
|
|
||||||
}
|
|
||||||
return thread.save()
|
return thread.save()
|
||||||
.then((saved) => {
|
.then((saved) => {
|
||||||
const promises = []
|
const promises = []
|
||||||
|
|
Loading…
Add table
Reference in a new issue