mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
Fix toggling between reply and reply-all
This commit is contained in:
parent
a541dac1ef
commit
27b51cbe90
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue