mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 10:33:14 +08:00
Add check for Gmail thread ID
This commit is contained in:
parent
6ad9cdd322
commit
5cc4841ac6
1 changed files with 3 additions and 2 deletions
|
@ -41,8 +41,9 @@ function matchThread({db, message}) {
|
|||
|
||||
function addMessageToThread({db, accountId, message}) {
|
||||
const {Thread} = db
|
||||
if (message.threadId) {
|
||||
return Thread.find({where: {threadId: message.threadId}})
|
||||
// Check for Gmail's own thread ID
|
||||
if (message.headers['X-GM-THRID']) {
|
||||
return Thread.find({where: {threadId: message.headers['X-GM-THRID']})
|
||||
}
|
||||
return matchThread({db, accountId, message})
|
||||
.then((thread) => (thread))
|
||||
|
|
Loading…
Reference in a new issue