mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 12:25:11 +00:00
fix: LoadProfileBottomSheet accessing disposed outerContext
This commit is contained in:
parent
3cea32e1c8
commit
3946838f33
1 changed files with 4 additions and 1 deletions
|
@ -233,7 +233,10 @@ class UserBottomSheetController extends State<UserBottomSheet> {
|
|||
);
|
||||
if (roomIdResult.error != null) return;
|
||||
widget.outerContext.go('/rooms/${roomIdResult.result!}');
|
||||
Navigator.of(context, rootNavigator: false).pop();
|
||||
Navigator.of(context, rootNavigator: false)
|
||||
..pop()
|
||||
..pop();
|
||||
widget.outerContext.go('/rooms/${roomIdResult.result!}');
|
||||
break;
|
||||
case UserBottomSheetAction.ignore:
|
||||
context.go('/rooms/settings/security/ignorelist');
|
||||
|
|
Loading…
Reference in a new issue