From b5ba21c9a664a62d12d427a79d6b82dd6bd5d158 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 22 Jul 2015 09:50:55 +0930 Subject: [PATCH] PERF: fix subtrees never being retained if "mark all as read" was clicked I didn't realise, performance was terrible for people who have ever clicked the "mark all as read" button! --- framework/core/js/forum/src/components/DiscussionListItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/DiscussionListItem.js b/framework/core/js/forum/src/components/DiscussionListItem.js index f772cfbdd..8ed90b012 100644 --- a/framework/core/js/forum/src/components/DiscussionListItem.js +++ b/framework/core/js/forum/src/components/DiscussionListItem.js @@ -35,7 +35,7 @@ export default class DiscussionListItem extends Component { */ this.subtree = new SubtreeRetainer( () => this.props.discussion.freshness, - () => app.session.user && app.session.user.readTime(), + () => app.session.user && app.session.user.readTime().getTime(), () => this.active() ); }