Skip to content

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

FIX: Topic timeline not updating in megatopics. (#14645)

Alan Guo Xiang Tane74e3fa043ef
diff --git a/app/assets/javascripts/discourse/app/widgets/topic-timeline.js b/app/assets/javascripts/discourse/app/widgets/topic-timeline.js
index 28437a7f540..f5b67655d5f 100644
--- a/app/assets/javascripts/discourse/app/widgets/topic-timeline.js
+++ b/app/assets/javascripts/discourse/app/widgets/topic-timeline.js
@@ -555,7 +555,7 @@ export default createWidget("topic-timeline", {
if (!attrs.mobileView) {
const streamLength = attrs.topic.get("postStream.stream.length");
- if (streamLength < 2) {
+ if (streamLength === 1) {
const postsWrapper = document.querySelector(".posts-wrapper");
if (postsWrapper && postsWrapper.offsetHeight < 1000) {
displayTimeLineScrollArea = false;