diff --git a/app/models/dmail.rb b/app/models/dmail.rb index 40c4bf7b1..c7f48f830 100644 --- a/app/models/dmail.rb +++ b/app/models/dmail.rb @@ -201,7 +201,7 @@ class Dmail < ActiveRecord::Base end def update_recipient - unless is_deleted? + if owner_id != CurrentUser.user.id && !is_deleted? to.update_attribute(:has_mail, true) end end