diff --git a/lib/utils/notifications_navigation.dart b/lib/utils/notifications_navigation.dart index 400431997..da9ed31fa 100644 --- a/lib/utils/notifications_navigation.dart +++ b/lib/utils/notifications_navigation.dart @@ -40,6 +40,8 @@ void navigateToNotificationReplyPage(BuildContext context, {required int? replyI } if (context.mounted) { + final NotificationsReplyPage notificationsReplyPage = NotificationsReplyPage(replies: specificReply == null ? allReplies : [specificReply]); + Navigator.of(context) .push( SwipeablePageRoute( @@ -50,7 +52,7 @@ void navigateToNotificationReplyPage(BuildContext context, {required int? replyI providers: [ BlocProvider.value(value: thunderBloc), ], - child: NotificationsReplyPage(replies: specificReply == null ? allReplies : [specificReply]), + child: notificationsReplyPage, ), ), )