lib/sup/modes/thread_index_mode.rb in sup-0.17.0 vs lib/sup/modes/thread_index_mode.rb in sup-0.18.0
- old
+ new
@@ -234,10 +234,17 @@
return unless t
hide_thread t
update
end
+ def handle_killed_update sender, m
+ t = @ts_mutex.synchronize { @ts.thread_for m }
+ return unless t
+ hide_thread t
+ update
+ end
+
def handle_spammed_update sender, m
t = @ts_mutex.synchronize { @ts.thread_for m }
return unless t
hide_thread t
update
@@ -245,10 +252,14 @@
def handle_undeleted_update sender, m
add_or_unhide m
end
+ def handle_unkilled_update sender, m
+ add_or_unhide m
+ end
+
def undo
UndoManager.undo
end
def update
@@ -977,10 +988,10 @@
[:starred_color, (starred ? "*" : " ")],
] +
from +
[
[:size_widget_color, size_widget_text],
- [:to_me_color, t.labels.member?(:attachment) ? "@" : " "],
+ [:with_attachment_color , t.labels.member?(:attachment) ? "@" : " "],
[:to_me_color, directly_participated ? ">" : (participated ? '+' : " ")],
] +
(t.labels - @hidden_labels).sort_by {|x| x.to_s}.map {
|label| [Colormap.sym_is_defined("label_#{label}_color".to_sym) || :label_color, "#{label} "]
} +