Skip to content
Snippets Groups Projects

Allow Email Replies to Notes to Create Discussions

Merged Andrew Fontaine requested to merge afontaine/make-discussions-from-emails into master
All threads resolved!
Files
7
+ 1
1
@@ -178,7 +178,7 @@ def mail_answer_note_thread(model, note, headers = {})
headers['In-Reply-To'] = message_id(note.references.last)
headers['References'] = note.references.map { |ref| message_id(ref) }
headers['X-GitLab-Discussion-ID'] = note.discussion.id if note.part_of_discussion?
headers['X-GitLab-Discussion-ID'] = note.discussion.id if note.part_of_discussion? || note.can_be_discussion_note?
headers[:subject] = "Re: #{headers[:subject]}" if headers[:subject]
Loading