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.

(cherry picked from commit 4dd1851140)
This commit is contained in:
Martynas Bagdonas 2022-10-04 13:31:36 +03:00
parent acfbbebd85
commit f8837ae58b
2 changed files with 3 additions and 1 deletions

View file

@ -1035,6 +1035,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