diff --git a/src/Filtering/ThreadHiding.coffee b/src/Filtering/ThreadHiding.coffee index 75c3333f6..f788822ab 100644 --- a/src/Filtering/ThreadHiding.coffee +++ b/src/Filtering/ThreadHiding.coffee @@ -183,6 +183,7 @@ ThreadHiding = threadRoot = thread.nodes.root thread.isHidden = true Index.updateHideLabel() + $.rm thread.catalogView.nodes.root if thread.catalogView and !Index.showHiddenThreads return threadRoot.hidden = true unless makeStub @@ -195,3 +196,4 @@ ThreadHiding = threadRoot = thread.nodes.root threadRoot.hidden = thread.isHidden = false Index.updateHideLabel() + $.rm thread.catalogView.nodes.root if thread.catalogView and Index.showHiddenThreads diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 926dee53f..06e063966 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -213,7 +213,6 @@ Index = e.preventDefault() # Also on mousedown to prevent highlighting text. toggleHide: (thread) -> - $.rm thread.catalogView.nodes.root if Index.showHiddenThreads ThreadHiding.show thread return unless ThreadHiding.db.get {boardID: thread.board.ID, threadID: thread.ID}