Skip to content

Commit

Permalink
Merge pull request #645 from aryanA101a/main
Browse files Browse the repository at this point in the history
fix: LoadProfileBottomSheet accessing disposed outerContext
  • Loading branch information
krille-chan authored Nov 5, 2023
2 parents 1789211 + 3946838 commit ab12ada
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pages/user_bottom_sheet/user_bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ab12ada

Please sign in to comment.