FIX: Do not show 'new or updated topics' for mobile categories page (#14490)

FIX: Do not show ‘new or updated topics’ for mobile categories page (#14490)

This banner should only show on the ‘categories + latest topics’ view, which is desktop-only

See new or updated topics link doesn't work on mobile - bug - Discourse Meta

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 f6cdd98..5013347 100644
--- a/app/assets/javascripts/discourse/app/models/topic-tracking-state.js
+++ b/app/assets/javascripts/discourse/app/models/topic-tracking-state.js
@@ -6,6 +6,7 @@ import DiscourseURL from "discourse/lib/url";
 import { NotificationLevels } from "discourse/lib/notification-levels";
 import PreloadStore from "discourse/lib/preload-store";
 import User from "discourse/models/user";
+import Site from "discourse/models/site";
 import { isEmpty } from "@ember/utils";
 
 function isNew(topic) {
@@ -244,6 +245,7 @@ const TopicTrackingState = EmberObject.extend({
     if (
       filter === "categories" &&
       data.message_type === "latest" &&
+      !Site.current().mobileView &&
       this.siteSettings.desktop_category_page_style ===
         "categories_and_latest_topics"
     ) {

GitHub sha: b6937e936b18c38064f34c0d06500a925bd689e9

This commit appears in #14490 which was approved by CvX. It was merged by davidtaylorhq.

This commit has been mentioned on Discourse Meta. There might be relevant details there: