activeUserId = $id; $this->dispatch('updateRecipientId', id: $id)->to('chat.message-window'); $this->redirectRoute('chat.show', $id); } }