From 77f885e86b5cb3357d75b983d66c8182dca5a730 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 26 Apr 2016 14:18:23 -0700 Subject: [PATCH] fix(draft-factory): Correctly load messages when creating a draft on a not-loaded thread. Sentry 26671 --- src/flux/stores/draft-factory.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flux/stores/draft-factory.coffee b/src/flux/stores/draft-factory.coffee index cf8875af4..3f63f0822 100644 --- a/src/flux/stores/draft-factory.coffee +++ b/src/flux/stores/draft-factory.coffee @@ -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())