Added 'read' check; message name is only bold if unread

This commit is contained in:
MrYummy
2017-06-15 15:04:15 +02:00
parent 9b50ec652c
commit dd193e740a
7 changed files with 10 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ class MessagerepliesController < ApplicationController
@reply.user_author = current_user
@reply.message = message
if @reply.save
@reply.message.update_attributes(user_hidden: nil)
@reply.message.update_attributes(user_hidden: nil, read: false)
if false
@reply.send_new_message_reply_mail
end