fix(draft-factory): Correctly load messages when creating a draft on a not-loaded thread. Sentry 26671

This commit is contained in:
Ben Gotow 2016-04-26 14:18:23 -07:00
parent 4962d24b4d
commit 77f885e86b

View file

@ -152,7 +152,7 @@ class DraftFactory
if behavior not in ['prefer-existing-if-pristine', 'prefer-existing']
return Promise.resolve(null)
getMessages = DatabaseStore.findBy(Message, {threadId: message.threadId})
getMessages = DatabaseStore.findAll(Message, {threadId: message.threadId})
if message.threadId is MessageStore.threadId()
getMessages = Promise.resolve(MessageStore.items())