Skip to content

Commit

Permalink
fix: LoadProfileBottomSheet accessing disposed outerContext
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanA101a committed Nov 4, 2023
1 parent c10fe91 commit e9905b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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,8 @@ 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 e9905b2

Please sign in to comment.