fix unit tests

This commit is contained in:
r888888888
2015-09-23 12:13:14 -07:00
parent b6d9011f6c
commit 3df9f0cdf6
9 changed files with 14045 additions and 93 deletions

View File

@@ -204,7 +204,7 @@ class Dmail < ActiveRecord::Base
end
def update_recipient
if owner_id != CurrentUser.user.id && !is_deleted?
if owner_id != CurrentUser.user.id && !is_deleted? && !is_read?
to.update_attribute(:has_mail, true)
end
end