lib/sup/modes/inbox-mode.rb in sup-0.3 vs lib/sup/modes/inbox-mode.rb in sup-0.4
- old
+ new
@@ -36,14 +36,17 @@
hide_thread t
end
regen_text
end
- def handle_archived_update sender, t
- if contains_thread? t
- hide_thread t
- regen_text
- end
+ def handle_unarchived_update sender, m
+ add_or_unhide m
+ end
+
+ def handle_archived_update sender, m
+ t = thread_containing(m) or return
+ hide_thread t
+ regen_text
end
def status
super + " #{Index.size} messages in index"
end