mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
[local-sync] don't play fast and loose with newlines, or a lack thereof
This commit is contained in:
parent
8238fe9594
commit
9d05bb9d1c
1 changed files with 6 additions and 2 deletions
|
@ -27,7 +27,9 @@ function pickMatchingThread(message, threads, maxThreadLength) {
|
|||
// No need to loop through the rest of the messages in the thread
|
||||
if (thread.messages.length >= maxThreadLength) {
|
||||
break;
|
||||
} else return thread;
|
||||
} else {
|
||||
return thread;
|
||||
}
|
||||
}
|
||||
|
||||
// handle the case where someone is self-sending an email
|
||||
|
@ -42,7 +44,9 @@ function pickMatchingThread(message, threads, maxThreadLength) {
|
|||
&& newMsgToEmails === existingMsgFromEmails) {
|
||||
if (thread.messages.length >= maxThreadLength) {
|
||||
break;
|
||||
} else return thread;
|
||||
} else {
|
||||
return thread;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue