X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/36592f72bca5e5670c01c2d259c3139e6eae54ad..56b2fdf5c9915b02c8bf051e4f82927ae72c8c41:/app/controllers/message_controller.rb diff --git a/app/controllers/message_controller.rb b/app/controllers/message_controller.rb index 4d53943ed..c7acc90d8 100644 --- a/app/controllers/message_controller.rb +++ b/app/controllers/message_controller.rb @@ -24,7 +24,7 @@ class MessageController < ApplicationController 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