From 42ad3b8d3c442d49f046632c21be7a4daf10d43e Mon Sep 17 00:00:00 2001 From: Toks Date: Fri, 12 Dec 2014 23:59:26 -0500 Subject: [PATCH] #2326 fix has_mail being set by wrong copy --- app/models/dmail.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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