Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3812c75f authored by cketti's avatar cketti
Browse files

Applied patch by fiouzy to read In-Reply-To and References header from saved draft.

Fixes issue 1686
parent 6d6a9d0f
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -1481,6 +1481,20 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
                    mBccView.setVisibility(View.VISIBLE);
                }

                // Read In-Reply-To header from draft
                final String[] inReplyTo = message.getHeader("In-Reply-To");
                if ((inReplyTo != null) && (inReplyTo.length >= 1))
                {
                    mInReplyTo = inReplyTo[0];
                }

                // Read References header from draft
                final String[] references = message.getHeader("References");
                if ((references != null) && (references.length >= 1))
                {
                    mReferences = references[0];
                }

                if (!mSourceMessageProcessed)
                {
                    loadAttachments(message, 0);