#2326 fix has_mail being set by wrong copy
This commit is contained in:
@@ -201,7 +201,7 @@ class Dmail < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update_recipient
|
def update_recipient
|
||||||
unless is_deleted?
|
if owner_id != CurrentUser.user.id && !is_deleted?
|
||||||
to.update_attribute(:has_mail, true)
|
to.update_attribute(:has_mail, true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user