This commit is contained in:
Manav Rathi 2025-02-28 15:32:33 +05:30
parent de9cad09c4
commit 67dc1b77d4
No known key found for this signature in database

View File

@ -530,7 +530,10 @@ export class FileViewerPhotoSwipe {
) => {
const af = currentAnnotatedFile();
const isFavorite = delegate.isFavorite(af);
showIf(buttonElement, isFavorite === value);
showIf(
buttonElement,
af.annotation.showFavorite && isFavorite === value,
);
buttonElement.disabled = this.pendingFavoriteUpdates.has(
af.file.id,
);