Merge pull request #359 from foodcoop1040/reply_private

Reply private to private messages
This commit is contained in:
wvengen 2015-03-20 16:42:38 +01:00
commit 097a7ffbe8

View file

@ -16,6 +16,7 @@ class MessagesController < ApplicationController
if original_message.is_readable_for?(current_user)
@message.add_recipients [original_message.sender]
@message.group_id = original_message.group_id
@message.private = original_message.private
@message.subject = I18n.t('messages.model.reply_subject', :subject => original_message.subject)
@message.body = I18n.t('messages.model.reply_header', :user => original_message.sender.display, :when => I18n.l(original_message.created_at, :format => :short)) + "\n"
original_message.body.each_line{ |l| @message.body += I18n.t('messages.model.reply_indent', :line => l) }