High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): user storage quota not showing (#21263)
Yaros204299d500a4
diff --git a/mobile/lib/domain/models/user.model.dart b/mobile/lib/domain/models/user.model.dartindex b0a66f7d70..aaf6d81934 100644--- a/mobile/lib/domain/models/user.model.dart+++ b/mobile/lib/domain/models/user.model.dart@@ -75,6 +75,8 @@ profileChangedAt: $profileChangedAtbool? isPartnerSharedWith,bool? hasProfileImage,DateTime? profileChangedAt,+ int? quotaSizeInBytes,+ int? quotaUsageInBytes,}) => UserDto(id: id ?? this.id,email: email ?? this.email,@@ -88,6 +90,8 @@ profileChangedAt: $profileChangedAtisPartnerSharedWith: isPartnerSharedWith ?? this.isPartnerSharedWith,hasProfileImage: hasProfileImage ?? this.hasProfileImage,profileChangedAt: profileChangedAt ?? this.profileChangedAt,+ quotaSizeInBytes: quotaSizeInBytes ?? this.quotaSizeInBytes,+ quotaUsageInBytes: quotaUsageInBytes ?? this.quotaUsageInBytes,);@override@@ -105,7 +109,9 @@ profileChangedAt: $profileChangedAtother.memoryEnabled == memoryEnabled &&other.inTimeline == inTimeline &&other.hasProfileImage == hasProfileImage &&- other.profileChangedAt.isAtSameMomentAs(profileChangedAt);+ other.profileChangedAt.isAtSameMomentAs(profileChangedAt) &&+ other.quotaSizeInBytes == quotaSizeInBytes &&+ other.quotaUsageInBytes == quotaUsageInBytes;}@override@@ -121,7 +127,9 @@ profileChangedAt: $profileChangedAtisPartnerSharedBy.hashCode ^isPartnerSharedWith.hashCode ^hasProfileImage.hashCode ^- profileChangedAt.hashCode;+ profileChangedAt.hashCode ^+ quotaSizeInBytes.hashCode ^+ quotaUsageInBytes.hashCode;}class PartnerUserDto {diff --git a/mobile/lib/infrastructure/entities/user.entity.dart b/mobile/lib/infrastructure/entities/user.entity.dartindex 78fc76b45d..c3612cb8c6 100644--- a/mobile/lib/infrastructure/entities/user.entity.dart+++ b/mobile/lib/infrastructure/entities/user.entity.dart@@ -54,6 +54,8 @@ class User {avatarColor: dto.avatarColor,memoryEnabled: dto.memoryEnabled,inTimeline: dto.inTimeline,+ quotaUsageInBytes: dto.quotaUsageInBytes,+ quotaSizeInBytes: dto.quotaSizeInBytes,);UserDto toDto() => UserDto(diff --git a/mobile/lib/infrastructure/utils/user.converter.dart b/mobile/lib/infrastructure/utils/user.converter.dartindex dc107e6fb2..bf35077e1f 100644--- a/mobile/lib/infrastructure/utils/user.converter.dart+++ b/mobile/lib/infrastructure/utils/user.converter.dart@@ -29,6 +29,8 @@ abstract final class UserConverter {isPartnerSharedWith: false,profileChangedAt: adminDto.profileChangedAt,hasProfileImage: adminDto.profileImagePath.isNotEmpty,+ quotaSizeInBytes: adminDto.quotaSizeInBytes ?? 0,+ quotaUsageInBytes: adminDto.quotaUsageInBytes ?? 0,);static UserDto fromPartnerDto(PartnerResponseDto dto) => UserDto(