mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 10:38:11 +08:00
[client-sync] add assertion about Reference not cleaned up properly
This commit is contained in:
parent
de0e30d8dd
commit
9fd2f097b0
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ async function findOrBuildByReferences(db, message) {
|
|||
});
|
||||
}
|
||||
|
||||
if (matchingRef && !matchingRef.thread) {
|
||||
throw new Error(`Reference not properly cleaned up`)
|
||||
}
|
||||
return matchingRef ? matchingRef.thread : emptyThread(db, {});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue