From a25d502d154cd9481cf2402847f4c795c935318b Mon Sep 17 00:00:00 2001 From: Chad Birch Date: Wed, 19 Feb 2014 17:49:36 -0700 Subject: [PATCH] Message icons: no orangered on mark-read pages --- r2/r2/controllers/listingcontroller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r2/r2/controllers/listingcontroller.py b/r2/r2/controllers/listingcontroller.py index a5a9b3a52..e5b4ad666 100755 --- a/r2/r2/controllers/listingcontroller.py +++ b/r2/r2/controllers/listingcontroller.py @@ -903,6 +903,7 @@ class MessageController(ListingController): q = queries.get_unread_subreddit_messages(c.site) elif self.where in ('moderator', 'multi'): if c.have_mod_messages and self.mark != 'false': + c.have_mod_messages = False c.user.modmsgtime = False c.user._commit() # the query is handled by the builder on the moderator page @@ -912,6 +913,7 @@ class MessageController(ListingController): if self.where != 'sent': #reset the inbox if c.have_messages and self.mark != 'false': + c.have_messages = False c.user.msgtime = False c.user._commit()