From 079853656eba535d1cbc807eadef2bde98ea2499 Mon Sep 17 00:00:00 2001 From: Toks Date: Sat, 29 Mar 2014 16:27:41 -0400 Subject: [PATCH] Fix marking all dmails as read not working fully --- app/controllers/dmails_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/dmails_controller.rb b/app/controllers/dmails_controller.rb index dd31feaf1..c57f2ab82 100644 --- a/app/controllers/dmails_controller.rb +++ b/app/controllers/dmails_controller.rb @@ -53,6 +53,7 @@ class DmailsController < ApplicationController Dmail.visible.unread.each do |x| x.update_column(:is_read, true) end + CurrentUser.user.update_column(:has_mail, false) end private