feat(push_navigation): fixed navigation to chat screen

This commit is contained in:
misha
2026-04-08 12:14:43 +03:00
parent f17f1ecb57
commit 4ca90eb2df
2 changed files with 17 additions and 12 deletions

View File

@@ -63,6 +63,14 @@ class _ChatScreenState extends State<ChatScreen> {
chatRoomCubit.setTimer();
}
@override
void didUpdateWidget(ChatScreen oldWidget) {
super.didUpdateWidget(oldWidget);
if (oldWidget.uuid != widget.uuid) {
chatRoomCubit.initChat(widget.uuid, sendInitialMessage: widget.sendInitialMessage ?? false);
}
}
@override
void initState() {
super.initState();