Make chat list delete similar to leave (close chat on leave) (#3672)

This commit is contained in:
Kelrap 2025-08-08 16:55:25 -04:00 committed by GitHub
parent 194c25be25
commit 60c1a40e94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,6 +46,7 @@ import '../../widgets/matrix.dart';
import 'package:fluffychat/utils/tor_stub.dart'
if (dart.library.html) 'package:tor_detector_web/tor_detector_web.dart';
enum PopupMenuAction {
settings,
invite,
@ -1113,10 +1114,13 @@ class ChatListController extends State<ChatList>
if (confirmed != OkCancelResult.ok) return;
if (!mounted) return;
await showFutureLoadingDialog(
final resp = await showFutureLoadingDialog(
context: context,
future: room.delete,
);
if (mounted && !resp.isError) {
context.go("/rooms");
}
}
return;
// Pangea#