chore: if user closes invite dialog without declining, don't leave invited space

This commit is contained in:
ggurdin 2025-06-26 13:25:14 -04:00
parent e8d1377c25
commit 29c61b2b2d
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,6 @@ 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,

View file

@ -31,8 +31,9 @@ Future<void> showInviteDialog(Room room, BuildContext context) async {
room.isSpace ? "/rooms?spaceId=${room.id}" : "/rooms/${room.id}",
);
return room.id;
} else if (acceptInvite == OkCancelResult.cancel) {
await room.leave();
}
await room.leave();
},
);