Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
baig772 opened this issue Sep 7, 2017 · 8 comments
Open

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

baig772 opened this issue Sep 7, 2017 · 8 comments

Comments

@baig772
Copy link

baig772 commented Sep 7, 2017

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

@nahid
Copy link
Owner

nahid commented Oct 1, 2017

Please update talk config with latest version

@baig772
Copy link
Author

baig772 commented Oct 1, 2017

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

@nahid
Copy link
Owner

nahid commented Oct 1, 2017

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

@baig772
Copy link
Author

baig772 commented Oct 1, 2017

<?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 ] ], ], ];

@nahid
Copy link
Owner

nahid commented Oct 1, 2017

Which version of Talk are you using?

@baig772
Copy link
Author

baig772 commented Oct 1, 2017

"nahid/talk": "^2.0",

@nahid
Copy link
Owner

nahid commented Oct 1, 2017

Please update it with version v2.2.1

@namanucode
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants