From ac1f6ab25834df3b37115476c0ca954e6bcc993d Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Tue, 3 Mar 2015 13:28:54 +0100 Subject: [PATCH] Reply private to private messages --- plugins/messages/app/controllers/messages_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/messages/app/controllers/messages_controller.rb b/plugins/messages/app/controllers/messages_controller.rb index 7bde50c1..c29f7fff 100644 --- a/plugins/messages/app/controllers/messages_controller.rb +++ b/plugins/messages/app/controllers/messages_controller.rb @@ -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) }