diff --git a/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart b/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart index 133561d14..04ec2662c 100644 --- a/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart +++ b/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart @@ -22,7 +22,7 @@ class UserBottomSheetView extends StatelessWidget { controller.widget.profile?.userId.localpart)!; final avatarUrl = user?.avatarUrl ?? controller.widget.profile?.avatarUrl; - final client = Matrix.of(context).client; + final client = Matrix.of(controller.widget.outerContext).client; final profileSearchError = controller.widget.profileSearchError; return SafeArea( child: Scaffold(