A platform for community discussion. Free, open, simple.
FIX: Notify incoming to categories and latest topics view specifically. (#14473)
Jean7737d56dd088
diff --git a/app/assets/javascripts/discourse/app/models/topic-tracking-state.js b/app/assets/javascripts/discourse/app/models/topic-tracking-state.jsindex 96215c767fe..f6cdd98e4e4 100644--- a/app/assets/javascripts/discourse/app/models/topic-tracking-state.js+++ b/app/assets/javascripts/discourse/app/models/topic-tracking-state.js@@ -236,9 +236,16 @@ const TopicTrackingState = EmberObject.extend({// always add incoming if looking at the latest list and a latest channel// message comes through+ if (filter === "latest" && data.message_type === "latest") {+ this._addIncoming(data.topic_id);+ }++ // Add incoming to the 'categories and latest topics' desktop viewif (- (filter === "latest" || filter === "categories") &&- data.message_type === "latest"+ filter === "categories" &&+ data.message_type === "latest" &&+ this.siteSettings.desktop_category_page_style ===+ "categories_and_latest_topics") {this._addIncoming(data.topic_id);}