mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 02:30:21 +08:00
fix(draft-factory): Correctly load messages when creating a draft on a not-loaded thread. Sentry 26671
This commit is contained in:
parent
4962d24b4d
commit
77f885e86b
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class DraftFactory
|
||||||
if behavior not in ['prefer-existing-if-pristine', 'prefer-existing']
|
if behavior not in ['prefer-existing-if-pristine', 'prefer-existing']
|
||||||
return Promise.resolve(null)
|
return Promise.resolve(null)
|
||||||
|
|
||||||
getMessages = DatabaseStore.findBy(Message, {threadId: message.threadId})
|
getMessages = DatabaseStore.findAll(Message, {threadId: message.threadId})
|
||||||
if message.threadId is MessageStore.threadId()
|
if message.threadId is MessageStore.threadId()
|
||||||
getMessages = Promise.resolve(MessageStore.items())
|
getMessages = Promise.resolve(MessageStore.items())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue