Skip to content

Commit

Permalink
Make sure a message will be mark as read if deleted
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Schroeder -{ProtonMicro}- <samuelschroeder@gmail.com>
  • Loading branch information
Philippe Lafoucrière authored and sschroed committed Jan 19, 2009
1 parent d26c024 commit 6516abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/messages/templates/messages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def mark_message_for_destruction(message)
# "inbox"
if rezm_user.id == message.receiver_id and !message.receiver_deleted
message.receiver_deleted = true
message.mark_message_read(rezm_user)
# "outbox"
elsif rezm_user.id == message.sender_id
message.sender_deleted = true
Expand Down

0 comments on commit 6516abf

Please sign in to comment.