mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 05:45:10 +00:00
Merge pull request #645 from aryanA101a/main
fix: LoadProfileBottomSheet accessing disposed outerContext
This commit is contained in:
commit
ab12ada92b
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