feat: check server feature to render OCR search option (#23325)

This commit is contained in:
Alex 2025-10-28 13:54:41 -05:00 committed by GitHub
parent 9676da27c9
commit 106effca2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 71 additions and 19 deletions

View file

@ -46,6 +46,11 @@ dynamic upgradeDto(dynamic value, String targetType) {
addDefault(value, 'profileChangedAt', DateTime.now().toIso8601String());
addDefault(value, 'hasProfileImage', false);
}
case 'ServerFeaturesDto':
if (value is Map) {
addDefault(value, 'ocr', false);
}
break;
}
}