chore: exit chat when leaving via chat list item context menu (#2075)

This commit is contained in:
ggurdin 2025-03-07 12:23:56 -05:00 committed by GitHub
parent f2373a255f
commit fb95930e31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,6 +43,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,
@ -942,10 +943,13 @@ class ChatListController extends State<ChatList>
// #Pangea
// await showFutureLoadingDialog(context: context, future: room.leave);
await showFutureLoadingDialog(
final resp = await showFutureLoadingDialog(
context: context,
future: room.isSpace ? room.leaveSpace : room.leave,
);
if (mounted && !resp.isError) {
context.go("/rooms");
}
// Pangea#
return;