lib/sup/modes/person_search_results_mode.rb (228B) - raw
1 module Redwood
2
3 class PersonSearchResultsMode < ThreadIndexMode
4 def initialize people
5 @people = people
6 super [], { :participants => @people }
7 end
8
9 def is_relevant? m; @people.any? { |p| m.from == p }; end
10 end
11
12 end