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

This commit is contained in:
Jean 2021-09-29 10:05:38 -04:00 committed by GitHub
parent 928f102516
commit 7737d56dd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -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);
}