diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 330ab5e..97be4c2 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -47,7 +47,7 @@ class HomeController extends Controller return response()->json([ 'success' => true, - 'url_redirect' => route($user_type . '.dialog', ['chat' => $new_message->chat_id_to]) + 'url_redirect' => route($user_type . '.dialog', ['chat' => $new_message->chat_id_from]) ]); } }