Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove obsolete pm-tracking code (#38590)

Jarek Radoszdc81db8f17c0
diff --git a/frontend/discourse/app/models/post-stream.js b/frontend/discourse/app/models/post-stream.js
index 6fe4671b8dd..d6353f59e24 100644
--- a/frontend/discourse/app/models/post-stream.js
+++ b/frontend/discourse/app/models/post-stream.js
@@ -1344,9 +1344,5 @@ export default class PostStream extends RestModel {
suggested_topics: result.suggested_topics,
suggested_group_name: result.suggested_group_name,
});
-
- if (this.topic.isPrivateMessage) {
- this.pmTopicTrackingState.startTracking();
- }
}
}
diff --git a/frontend/discourse/app/routes/topic/from-params.js b/frontend/discourse/app/routes/topic/from-params.js
index 65da50a0112..353268b02ce 100644
--- a/frontend/discourse/app/routes/topic/from-params.js
+++ b/frontend/discourse/app/routes/topic/from-params.js
@@ -43,10 +43,6 @@ export default class TopicFromParams extends DiscourseRoute {
afterModel(model) {
const topic = this.modelFor("topic");
- if (topic.isPrivateMessage && topic.suggested_topics) {
- this.pmTopicTrackingState.startTracking();
- }
-
const isLoadingFirstPost =
topic.postStream.firstPostPresent &&
!(model.nearPost && model.nearPost > 1);