From 6649e8519c2be71b4c5137e91527dcd50ee446c5 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 16 Feb 2014 03:15:23 -0700 Subject: [PATCH] Fix unread count + thread updater with quote threading enabled See guys, fix one thing, break another! --- builds/4chan-X.user.js | 3 +++ builds/crx/script.js | 3 +++ src/Monitoring/Unread.coffee | 3 +++ 3 files changed, 9 insertions(+) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 77bc6f1db..11f188ac5 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -10148,6 +10148,9 @@ return Unread.update(); } else if (!Conf['Quote Threading']) { return Unread.addPosts(e.detail.newPosts); + } else { + Unread.read(); + return Unread.update(); } }, readSinglePost: function(post) { diff --git a/builds/crx/script.js b/builds/crx/script.js index 9ca9a18ac..2106eb18c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -10139,6 +10139,9 @@ return Unread.update(); } else if (!Conf['Quote Threading']) { return Unread.addPosts(e.detail.newPosts); + } else { + Unread.read(); + return Unread.update(); } }, readSinglePost: function(post) { diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index 267d38fe6..262b4867b 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -128,6 +128,9 @@ Unread = Unread.update() else if !Conf['Quote Threading'] Unread.addPosts e.detail.newPosts + else + Unread.read() + Unread.update() readSinglePost: (post) -> {ID} = post