Remove feedback dialog post account deletion

This commit is contained in:
Neeraj Gupta 2023-03-15 18:36:25 +05:30
parent 59c12de19f
commit b7b6de437f
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -1,7 +1,6 @@
import 'dart:convert';
import 'package:flutter/material.dart';
import "package:logging/logging.dart";
import 'package:photos/core/configuration.dart';
import 'package:photos/models/delete_account.dart';
import 'package:photos/services/user_service.dart';
@ -252,25 +251,6 @@ class _DeleteAccountPageState extends State<DeleteAccountPage> {
}
Navigator.of(context).popUntil((route) => route.isFirst);
await showTextInputDialog(
context,
title: "Your account was deleted. Would you like to leave us a note?",
submitButtonLabel: "Send",
hintText: "Optional, as short as you like...",
alwaysShowSuccessState: true,
textCapitalization: TextCapitalization.words,
onSubmit: (String text) async {
// indicates user cancelled the rename request
if (text == "" || text.trim().isEmpty) {
return;
}
try {
await UserService.instance.sendFeedback(context, text);
} catch (e, s) {
Logger("Delete account").severe("Failed to send feedback", e, s);
}
},
);
}
Future<void> _requestEmailForDeletion(BuildContext context) async {