Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Doc

Manav Rathi773d98e20c8d
diff --git a/web/apps/photos/src/services/trashService.ts b/web/apps/photos/src/services/trashService.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/web/packages/media/file.ts b/web/packages/media/file.ts
index 2afc00bfbf..1cb922ac84 100644
--- a/web/packages/media/file.ts
+++ b/web/packages/media/file.ts
@@ -563,7 +563,22 @@ export interface TrashItem extends Omit<EncryptedTrashItem, "file"> {
export interface EncryptedTrashItem {
file: EncryptedEnteFile;
+ /**
+ * `true` if the file no longer in trash because it was permanently deleted.
+ *
+ * This field is relevant when we obtain a trash item as part of the trash
+ * diff. It indicates that the file which was previously in trash is no
+ * longer in the trash because it was permanently deleted.
+ */
isDeleted: boolean;
+ /**
+ * `true` if the file no longer in trash because it was restored to some
+ * collection.
+ *
+ * This field is relevant when we obtain a trash item as part of the trash
+ * diff. It indicates that the file which was previously in trash is no
+ * longer in the trash because it was restored to a collection.
+ */
isRestored: boolean;
deleteBy: number;
createdAt: number;