Skip to content

Commit

Permalink
Fix notifications page state issue (#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahmo authored Feb 29, 2024
1 parent 4d70aba commit c66b49f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils/notifications_navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
),
),
)
Expand Down

0 comments on commit c66b49f

Please sign in to comment.