feat(mobile): unify partner assets on timeline (#4974)

* feat(mobile): unify partner assets on timeline

* skip non-owned assets in bulk actions

* add message when trying to delete partner assets
This commit is contained in:
Fynn Petersen-Frey 2023-11-13 16:54:41 +01:00 committed by GitHub
parent 0c482960ce
commit 9fa9ad05b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 274 additions and 138 deletions

View file

@ -31,7 +31,8 @@ class User {
isPartnerSharedWith = false,
profileImagePath = dto.profileImagePath,
isAdmin = dto.isAdmin,
memoryEnabled = dto.memoriesEnabled;
memoryEnabled = dto.memoriesEnabled ?? false,
inTimeline = false;
User.fromPartnerDto(PartnerResponseDto dto)
: id = dto.id,
@ -42,8 +43,8 @@ class User {
isPartnerSharedWith = false,
profileImagePath = dto.profileImagePath,
isAdmin = dto.isAdmin,
memoryEnabled = dto.memoriesEnabled,
inTimeline = dto.inTimeline;
memoryEnabled = dto.memoriesEnabled ?? false,
inTimeline = dto.inTimeline ?? false;
@Index(unique: true, replace: false, type: IndexType.hash)
String id;
@ -54,8 +55,8 @@ class User {
bool isPartnerSharedWith;
bool isAdmin;
String profileImagePath;
bool? memoryEnabled;
bool? inTimeline;
bool memoryEnabled;
bool inTimeline;
@Backlink(to: 'owner')
final IsarLinks<Album> albums = IsarLinks<Album>();