]> git.notmuchmail.org Git - sup/commit
bugfix: hidden threads don't actually reappear when asked to unhide
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 25 Jan 2008 02:48:44 +0000 (18:48 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 25 Jan 2008 02:48:44 +0000 (18:48 -0800)
commit81794a14968410f70ee0563afcf3b1e7e90be101
tree0d2064cffa1f10826b998a98b35f3e6af92796a9
parent3936930fd1d7d37704b58fbdec42c26c2af2b596
bugfix: hidden threads don't actually reappear when asked to unhide

In ThreadIndexMode, the logic was a little wrong. @hidden_threads isn't
keyed by Messages but by Threads, and for incoming messages that may
belong to a thread, it's necessary to find the corresponding thread first.

This was resulting in threads that had been archived in inbox-mode not
reappearing when new messages that belonged to them arrived.
lib/sup/modes/thread-index-mode.rb