diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index 3da3aed44..eee6c5844 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -99,7 +99,7 @@ <%= render "users/ban_notice" %> <% end %> - <% if CurrentUser.has_mail? && CurrentUser.dmails.unread.first.present? && cookies[:hide_dmail_notice].to_i != CurrentUser.dmails.unread.first.id %> + <% if CurrentUser.has_mail? && CurrentUser.dmails.unread.first.present? && (cookies[:hide_dmail_notice].blank? || cookies[:hide_dmail_notice].to_i < CurrentUser.dmails.unread.first.id) %> <%= render "users/dmail_notice" %> <% end %>