Commit 3fbab848 authored by Nick Stenning's avatar Nick Stenning

Merge pull request #3378 from hypothesis/pg-cleanup-streamer

Load annotation from DB in streamer
parents 2db2c595 ada7c3f9
......@@ -63,11 +63,14 @@ function connect($rootScope, annotationMapper, groups, session, settings) {
}
// Discard annotations that aren't from the currently focused group.
// Unless the action is delete, where we only get an id
// FIXME: Have the server only send us annotations from the focused
// group in the first place.
annotations = annotations.filter(function (ann) {
return ann.group === groups.focused().id;
});
if (action !== 'delete') {
annotations = annotations.filter(function (ann) {
return ann.group === groups.focused().id;
});
}
switch (action) {
case 'create':
......
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