mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 18:05:56 +08:00
FIX: category id in filterCategory (#8555)
Small regression was created here: https://github.com/discourse/discourse/commit/374534f00ee#diff-4af46675500edc092f9224ca5835a7ddR106 After that change `listFilter` is including `categoryId` like `c/cat/subcat/6/l/latest` instead of `c/cat/subcat/l/latest` Therefore, `trackIncoming` function in topic-tracking-state couldn't properly filter new messages
This commit is contained in:

committed by
GitHub

parent
998bbdc40f
commit
84ede5867c
@ -42,7 +42,7 @@ QUnit.test("subscribe to category", function(assert) {
|
||||
|
||||
const state = TopicTrackingState.create();
|
||||
|
||||
state.trackIncoming("c/darth/l/latest");
|
||||
state.trackIncoming("c/darth/1/l/latest");
|
||||
|
||||
state.notify({
|
||||
message_type: "new_topic",
|
||||
@ -67,7 +67,7 @@ QUnit.test("subscribe to category", function(assert) {
|
||||
);
|
||||
|
||||
state.resetTracking();
|
||||
state.trackIncoming("c/darth/luke/l/latest");
|
||||
state.trackIncoming("c/darth/luke/2/l/latest");
|
||||
|
||||
state.notify({
|
||||
message_type: "new_topic",
|
||||
|
Reference in New Issue
Block a user