Commit b6a8fa3d authored by Ujvari Gergely's avatar Ujvari Gergely

Notification throws out not relevant annotations when the social view mode is...

Notification throws out not relevant annotations when the social view mode is set to 'single-player'
parent c7e5072e
......@@ -430,12 +430,6 @@ class App
unless uri is href # Do not load the href again
console.log "Also loading annotations for: " + uri
annotator.plugins.Store.loadAnnotationsFromSearch uri: uri
annotator.addStore Store.options
href = annotator.plugins.Store.options.loadFromSearch.uri
for uri in annotator.plugins.Document.uris()
unless uri is href
annotator.plugins.Store.loadAnnotationsFromSearch uri: uri
$scope.new_updates = 0
......@@ -510,6 +504,10 @@ class App
unless data instanceof Array then data = [data]
$scope.$apply =>
for annotation in data
if $scope.socialView.name is 'single-player'
unless annotation.user is $scope.auth.persona
continue
check = annotator.threading.getContainer annotation.id
if check?.message?
if action is '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