Skip to content

Commit

Permalink
Show outbox after sending new message
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Jan 4, 2025
1 parent 95b919c commit 5a9851c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def create
elsif @message.save
flash[:notice] = t ".message_sent"
UserMailer.message_notification(@message).deliver_later if @message.notify_recipient?
redirect_to messages_inbox_path
redirect_to messages_outbox_path
else
@title = t "messages.new.title"
render :action => "new"
Expand Down

0 comments on commit 5a9851c

Please sign in to comment.