From 06525d44504f5148f70a9de50ecbb7c8500788f3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 8 Feb 2015 12:28:01 -0800 Subject: [PATCH] Don't refresh dead threads in thread watcher. We used to need this to update the watcher's unread count in archived threads, but that's updated upon scroll now. --- src/Monitoring/ThreadWatcher.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index 9ed37c7eb..6622b4366 100755 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -170,9 +170,9 @@ ThreadWatcher = ThreadWatcher.fetchStatus thread return - fetchStatus: (thread) -> + fetchStatus: (thread, force) -> {boardID, threadID, data} = thread - return if data.isDead and !Conf['Show Unread Count'] + return if data.isDead and not force {fetchCount} = ThreadWatcher if fetchCount.fetching is 0 ThreadWatcher.status.textContent = '...' @@ -356,7 +356,7 @@ ThreadWatcher = ThreadWatcher.db.set {boardID, threadID, val: data} ThreadWatcher.refresh() if Conf['Show Unread Count'] - ThreadWatcher.fetchStatus {boardID, threadID, data} + ThreadWatcher.fetchStatus {boardID, threadID, data}, true rm: (boardID, threadID) -> ThreadWatcher.db.delete {boardID, threadID}