talk-example icon indicating copy to clipboard operation
talk-example copied to clipboard

I have to refresh the page every time to get the new message

Open baig772 opened this issue 6 years ago • 8 comments

Hello @nahid , I am re-opening this issue. I have to refresh my page to get new messages. Please look into this

baig772 avatar Sep 07 '17 05:09 baig772

Please update talk config with latest version

nahid avatar Oct 01 '17 06:10 nahid

I already did. But still I have to refresh the page

baig772 avatar Oct 01 '17 09:10 baig772

Which version of Talk are you using? Please share your Talk config.

nahid avatar Oct 01 '17 10:10 nahid

<?php return [ 'user' => [ 'model' => 'App\User', ], 'broadcast' => [ 'enable' => true, 'app_name' => 'heroic-salute-582', 'pusher' => [ 'app_id' => env('PUSHER_APP_ID'), 'app_key' => env('PUSHER_KEY'), 'app_secret' => env('PUSHER_SECRET'), 'options' => [ 'cluster' => 'ap1', 'encrypted' => true ] ], ], ];

baig772 avatar Oct 01 '17 10:10 baig772

Which version of Talk are you using?

nahid avatar Oct 01 '17 10:10 nahid

"nahid/talk": "^2.0",

baig772 avatar Oct 01 '17 10:10 baig772

Please update it with version v2.2.1

nahid avatar Oct 01 '17 11:10 nahid

Hi, Mr. Nahid, I have used 2.3 but still the same issue and one more issue in below code

  1. Auth::user()->id trying to get id of non object

  2. when Print $threads in controller its show data but in view its show undefined variable public function __construct() { Auth::user()->id $this->middleware(['auth','verified','talk']); Talk::setAuthUserId(Auth::user()->id);

     View::composer('user.message.partials.peoplelist', function($view){
         $threads =  Talk::threads();
          $view->with(compact($threads));
     });
    

    }

can you please help me

namanucode avatar Aug 11 '20 15:08 namanucode