FIX: Notify incoming to categories and latest topics view specifically. (#14473)
This commit is contained in:
parent
928f102516
commit
7737d56dd0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue