Commit ada7c3f9 authored by chdorner's avatar chdorner

Skip filtering non-group focused annotations when deleting

The streamer will now only send the annotation id when the action is
delete. Thus we can't check if the annotation's group is currently
focused when the action is `delete`.
parent 69451ba1
......@@ -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.
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