High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
Add equals and hashcode to Asset
Matthias Rupp0deb8f40900e
diff --git a/mobile/lib/shared/models/asset.dart b/mobile/lib/shared/models/asset.dartindex 0d7f63892d..f432dd2ee8 100644--- a/mobile/lib/shared/models/asset.dart+++ b/mobile/lib/shared/models/asset.dart@@ -50,6 +50,15 @@ class Asset {}}+ @override+ bool operator ==(other) {+ if (other is! Asset) return false;+ return id == other.id && isLocal == other.isLocal;+ }++ @override+ int get hashCode => id.hashCode;+Map<String, dynamic> toJson() {final json = <String, dynamic>{};if (isLocal) {