Fix toggling between reply and reply-all

This commit is contained in:
Ben Gotow 2017-09-09 11:20:10 -07:00
parent a541dac1ef
commit 27b51cbe90
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ class DraftFactory
getMessages.then (messages) =>
candidateDrafts = messages.filter (other) =>
other.replyToHeaderMessageId is message.id and other.draft is true
other.replyToHeaderMessageId is message.headerMessageId and other.draft is true
if candidateDrafts.length is 0
return Promise.resolve(null)

View file

@ -291,7 +291,7 @@ class MessageStore extends NylasStore
# the message which it was in reply to. If we can't find it, put it at the end.
for item in itemsInReplyTo
for other, index in items
if item.replyToHeaderMessageId is other.id
if item.replyToHeaderMessageId is other.headerMessageId
items.splice(index+1, 0, item)
item = null
break