if @message.save
flash[:notice] = t 'message.new.message_sent'
- Notifier.message_notification(@message).deliver
+ Notifier.message_notification(@message).deliver_now
redirect_to :controller => 'message', :action => 'inbox', :display_name => @user.display_name
end
end
- else
- @message = Message.new(:recipient => @this_user)
- @title = t 'message.new.title'
end
+
+ @message ||= Message.new(:recipient => @this_user)
+ @title = t 'message.new.title'
end
# Allow the user to reply to another message.