Skip to content

armgit / ente

Public Imported from GitHub
0

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

[auth] Reduce code sharing duration

Neeraj Gupta3d096311f453
diff --git a/auth/lib/ui/share/code_share.dart b/auth/lib/ui/share/code_share.dart
index 1a35601753..26ffb29e82 100644
--- a/auth/lib/ui/share/code_share.dart
+++ b/auth/lib/ui/share/code_share.dart
@@ -24,7 +24,7 @@ class ShareCodeDialog extends StatefulWidget {
class _ShareCodeDialogState extends State<ShareCodeDialog> {
final Logger logger = Logger('_ShareCodeDialogState');
- final List<int> _durationInMins = [2, 5, 15, 30, 60];
+ final List<int> _durationInMins = [2, 5, 10];
late int selectedValue;
String getItemLabel(int min) {
@@ -41,7 +41,7 @@ class _ShareCodeDialogState extends State<ShareCodeDialog> {
@override
void initState() {
super.initState();
- selectedValue = _durationInMins[2];
+ selectedValue = _durationInMins[1];
}
@override
@@ -71,7 +71,7 @@ class _ShareCodeDialogState extends State<ShareCodeDialog> {
value: selectedValue,
onChanged: (value) {
setState(() {
- selectedValue = value ?? 15;
+ selectedValue = value ?? 2;
});
},
),