Merge pull request #3271 from pangeachat/dont-leave-invited-space-on-close-dialog
chore: if user closes invite dialog without declining, don't leave in…
This commit is contained in:
commit
cc5fb62930
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue