Don't allow pdf-reader to set annotation author name
Fixes the issue when your own created annotation becomes grayish and indicates that it was modified by another user.
This commit is contained in:
parent
006dd20d5b
commit
4dd1851140
2 changed files with 3 additions and 1 deletions
|
@ -1029,6 +1029,8 @@ class ReaderInstance {
|
|||
}
|
||||
}
|
||||
else {
|
||||
// Delete authorName to prevent overwriting the existing annotationAuthorName value
|
||||
delete annotation.authorName;
|
||||
let savedAnnotation = await Zotero.Annotations.saveFromJSON(attachment, annotation, saveOptions);
|
||||
let blob = this._dataURLtoBlob(annotation.image);
|
||||
await Zotero.Annotations.saveCacheImage(savedAnnotation, blob);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit ae444f1b72849b732b4b79957688c0375b6055eb
|
||||
Subproject commit c6845bd46d2b664c98b76d0b4235fb684872416e
|
Loading…
Reference in a new issue