FIX: Notify incoming to categories and latest topics view specifically. (#14473)

FIX: Notify incoming to categories and latest topics view specifically. (#14473)

diff --git a/app/assets/javascripts/discourse/app/models/topic-tracking-state.js b/app/assets/javascripts/discourse/app/models/topic-tracking-state.js
index 96215c7..f6cdd98 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 view
     if (
-      (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);
     }

GitHub sha: 7737d56dd0882679c9228f610ba461aa09672f72

This commit appears in #14473 which was approved by davidtaylorhq. It was merged by jmperez127.