Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove deprecation warnings

laurenspriem88f2b88f4dc2
diff --git a/mobile/apps/photos/lib/models/collection/collection.dart b/mobile/apps/photos/lib/models/collection/collection.dart
index ffb60673c5..7e9743e818 100644
--- a/mobile/apps/photos/lib/models/collection/collection.dart
+++ b/mobile/apps/photos/lib/models/collection/collection.dart
@@ -13,7 +13,8 @@ class Collection {
final User owner;
final String encryptedKey;
final String? keyDecryptionNonce;
- @Deprecated("Use collectionName instead")
+
+ /// WARNING: use collectionName instead of name! Name is deprecated but can't be removed because of old accounts.
String? name;
// encryptedName & nameDecryptionNonce will be null for collections
diff --git a/mobile/apps/photos/lib/ui/components/text_input_widget.dart b/mobile/apps/photos/lib/ui/components/text_input_widget.dart
index 4a59bbe7ee..d595ae8573 100644
--- a/mobile/apps/photos/lib/ui/components/text_input_widget.dart
+++ b/mobile/apps/photos/lib/ui/components/text_input_widget.dart
@@ -35,9 +35,8 @@ class TextInputWidget extends StatefulWidget {
final bool popNavAfterSubmission;
final bool shouldSurfaceExecutionStates;
final TextCapitalization? textCapitalization;
- @Deprecated(
- "Do not use this widget for password input. Create a separate PasswordInputWidget. This widget is becoming bloated and hard to maintain, so will create a PasswordInputWidget and remove this field from this widget in future",
- )
+
+ /// WARNING: Do not use this widget for password input. Create a separate PasswordInputWidget. This widget is becoming bloated and hard to maintain, so will create a PasswordInputWidget and remove this field from this widget in future
final bool isPasswordInput;
///Clear comes in the form of a suffix icon. It is unrelated to onCancel.