From 61fd978538ad2183cf6b3b82c4a902e2977f6ff1 Mon Sep 17 00:00:00 2001 From: Eric Budd Date: Fri, 25 May 2018 15:43:13 -0400 Subject: [PATCH] Fix unread count bug on edited messages --- TODO.md | 1 + iris.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index a965774..ac43359 100644 --- a/TODO.md +++ b/TODO.md @@ -5,6 +5,7 @@ ## Documentation: In Progress # For 1.0.7 +* ~Fix "unread count" bug~ * Add integration tests * Continue to make loader more durable against corrupted data files * Time to start refactoring! diff --git a/iris.rb b/iris.rb index 1a1d98f..880ebef 100755 --- a/iris.rb +++ b/iris.rb @@ -174,7 +174,7 @@ class Corpus end def self.unread_messages - @@corpus.reject{ |m| @@my_reads.include? m.hash } + displayable.reject{ |m| @@my_reads.include? m.hash } end def self.unread_topics