chore: exit chat when leaving via chat list item context menu (#2075)
This commit is contained in:
parent
f2373a255f
commit
fb95930e31
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue