1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(mobile): make user.memoryEnable optional (#3680)

* chore(server): avoid breaking changes

* generate api

* mobile app
This commit is contained in:
Alex 2023-08-14 12:52:06 -05:00 committed by GitHub
parent b1b215f083
commit 0d80ae3a91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 10 deletions

View File

@ -3159,7 +3159,7 @@ export interface UserResponseDto {
* @type {boolean}
* @memberof UserResponseDto
*/
'memoriesEnabled': boolean;
'memoriesEnabled'?: boolean;
/**
*
* @type {string}

View File

@ -342,8 +342,9 @@ class HomePage extends HookConsumerWidget {
listener: selectionListener,
selectionActive: selectionEnabledHook.value,
onRefresh: refreshAssets,
topWidget:
(currentUser != null && currentUser.memoryEnabled)
topWidget: (currentUser != null &&
currentUser.memoryEnabled != null &&
currentUser.memoryEnabled!)
? const MemoryLane()
: const SizedBox(),
),

View File

@ -44,7 +44,7 @@ class User {
bool isPartnerSharedWith;
bool isAdmin;
String profileImagePath;
bool memoryEnabled;
bool? memoryEnabled;
@Backlink(to: 'owner')
final IsarLinks<Album> albums = IsarLinks<Album>();
@Backlink(to: 'sharedUsers')

Binary file not shown.

Binary file not shown.

View File

@ -7152,8 +7152,7 @@
"createdAt",
"deletedAt",
"updatedAt",
"oauthId",
"memoriesEnabled"
"oauthId"
],
"type": "object"
},

View File

@ -14,7 +14,7 @@ export class UserResponseDto {
deletedAt!: Date | null;
updatedAt!: Date;
oauthId!: string;
memoriesEnabled!: boolean;
memoriesEnabled?: boolean;
}
export function mapUser(entity: UserEntity): UserResponseDto {

View File

@ -3159,7 +3159,7 @@ export interface UserResponseDto {
* @type {boolean}
* @memberof UserResponseDto
*/
'memoriesEnabled': boolean;
'memoriesEnabled'?: boolean;
/**
*
* @type {string}