1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix(mobile): profileChangedAt compatiblity with old servers (#12774)

* fix(mobile): profileChangedAt compatiblity with old servers

* chore: add breaks

---------

Co-authored-by: Jason Rasmussen <jason@rasm.me>
This commit is contained in:
Fynn Petersen-Frey 2024-09-18 17:59:30 +02:00 committed by GitHub
parent 6995cc2b38
commit 0ceb773865
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,6 +12,16 @@ dynamic upgradeDto(dynamic value, String targetType) {
addDefault(value, 'tags', TagsResponse().toJson());
}
break;
case 'UserResponseDto':
if (value is Map) {
addDefault(value, 'profileChangedAt', DateTime.now().toIso8601String());
}
break;
case 'UserAdminResponseDto':
if (value is Map) {
addDefault(value, 'profileChangedAt', DateTime.now().toIso8601String());
}
break;
}
}