refactor: deduplicate MemoryType and ReactionType enums ()

* refactor: deduplicate memorytype and reactiontype enums

* fix mobile
This commit is contained in:
Michel Heusschen 2024-07-31 19:08:31 +02:00 committed by GitHub
parent 281cfc95a4
commit b73f7fe16f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 18 additions and 176 deletions
mobile/lib/models/activities

View file

@ -43,7 +43,7 @@ class Activity {
assetId = dto.assetId,
comment = dto.comment,
createdAt = dto.createdAt,
type = dto.type == ActivityResponseDtoTypeEnum.comment
type = dto.type == ReactionType.comment
? ActivityType.comment
: ActivityType.like,
user = User.fromSimpleUserDto(dto.user);