From 1633e4498b375b0cd9395ac054aa4e3d29ca5ad9 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Fri, 2 Feb 2007 17:03:37 +0000 Subject: [PATCH] todo: added attach messages everything else: fixed new messages not popping up bug git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@296 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- doc/TODO | 1 + lib/sup/index.rb | 1 + lib/sup/modes/thread-index-mode.rb | 1 + lib/sup/poll.rb | 2 ++ 4 files changed, 5 insertions(+) diff --git a/doc/TODO b/doc/TODO index e75d55c..818267a 100644 --- a/doc/TODO +++ b/doc/TODO @@ -1,5 +1,6 @@ for next release ---------------- +attach messages warnings: top-posting, attachments bugfix: killed threads bugfix: new messages, drafts sometimes not showing up in inbox diff --git a/lib/sup/index.rb b/lib/sup/index.rb index cb56efe..039c6ea 100644 --- a/lib/sup/index.rb +++ b/lib/sup/index.rb @@ -124,6 +124,7 @@ class Index update_message m, docid, entry else add_message m + UpdateManager.relay :add, m end rescue MessageFormatError, SourceError => e Redwood::log "ignoring erroneous message at #{source}##{offset}: #{e.message}" diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 6292554..714d646 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -95,6 +95,7 @@ class ThreadIndexMode < LineCursorMode if is_relevant?(m) || @ts.is_relevant?(m) @ts.load_thread_for_message m update + BufferManager.draw_screen end end diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb index 5052fc7..9fc8b6f 100644 --- a/lib/sup/poll.rb +++ b/lib/sup/poll.rb @@ -23,6 +23,8 @@ class PollManager num, numi = buffer.mode.poll if num > 0 BufferManager.flash "Loaded #{num} new messages, #{numi} to inbox." + else + BufferManager.flash "No new messages." end [num, numi] end -- 2.45.2