commit f4a6a49e6fbce293b88cf39f3e65077c6e32c121
parent 45c3433c036446455e63142d2d2db4e37557a260
Author: Michael Stapelberg <michael@stapelberg.de>
Date: Thu, 7 Oct 2010 17:24:38 +0200
Bugfix: Don’t display thread participants twice
When a participant of a thread uses different email addresses, but the same
name, he would be displayed twice in the list:
Participants:
• foo
• foo
• bar
would lead to: "foo, bar, foo"
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -792,8 +792,8 @@ protected
authors = t.map do |m, *o|
next unless m && m.from
new[m.from] ||= m.has_label?(:unread)
- next if seen[m.from]
- seen[m.from] = true
+ next if seen[m.from.mediumname]
+ seen[m.from.mediumname] = true
m.from
end.compact