Commit df655869 authored by Randall Leeds's avatar Randall Leeds

Search all threads with search bar

Fixes #791
parent b5f105c4
...@@ -822,9 +822,8 @@ class Search ...@@ -822,9 +822,8 @@ class Search
threads = [] threads = []
$scope.render_order = {} $scope.render_order = {}
# Choose the root annotations to work with # Choose the root annotations to work with
for annotation in $scope.annotations for id, thread of annotator.threading.idTable when thread.message?
# The annotation itself is a hit. annotation = thread.message
thread = annotation.thread
if annotation.id in $scope.search_filter if annotation.id in $scope.search_filter
threads.push thread threads.push thread
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment