From 812e67d55dfa1a8360118189c073ffb4f1f01995 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Sun, 3 Dec 2023 22:35:22 +0000 Subject: [PATCH] fix(server): send upload_success notification only for non hidden assets (#5471) Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- server/src/domain/job/job.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/domain/job/job.service.ts b/server/src/domain/job/job.service.ts index 4735eb6b59..9751631175 100644 --- a/server/src/domain/job/job.service.ts +++ b/server/src/domain/job/job.service.ts @@ -223,7 +223,9 @@ export class JobService { } const [asset] = await this.assetRepository.getByIds([item.data.id]); - if (asset) { + + // Only live-photo motion part will be marked as not visible immediately on upload. Skip notifying clients + if (asset && asset.isVisible) { this.communicationRepository.send(CommunicationEvent.UPLOAD_SUCCESS, asset.ownerId, mapAsset(asset)); } }