{"action":"opened","issue":{"url":"https://api.github.com/repos/cmgmyr/laravel-messenger/issues/180","repository_url":"https://api.github.com/repos/cmgmyr/laravel-messenger","labels_url":"https://api.github.com/repos/cmgmyr/laravel-messenger/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/cmgmyr/laravel-messenger/issues/180/comments","events_url":"https://api.github.com/repos/cmgmyr/laravel-messenger/issues/180/events","html_url":"https://github.com/cmgmyr/laravel-messenger/issues/180","id":190280554,"number":180,"title":"Removing and showing participants list","user":{"login":"jrleonr","id":333915,"avatar_url":"https://avatars.githubusercontent.com/u/333915?v=3","gravatar_id":"","url":"https://api.github.com/users/jrleonr","html_url":"https://github.com/jrleonr","followers_url":"https://api.github.com/users/jrleonr/followers","following_url":"https://api.github.com/users/jrleonr/following{/other_user}","gists_url":"https://api.github.com/users/jrleonr/gists{/gist_id}","starred_url":"https://api.github.com/users/jrleonr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrleonr/subscriptions","organizations_url":"https://api.github.com/users/jrleonr/orgs","repos_url":"https://api.github.com/users/jrleonr/repos","events_url":"https://api.github.com/users/jrleonr/events{/privacy}","received_events_url":"https://api.github.com/users/jrleonr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-18T10:05:59Z","updated_at":"2016-11-18T10:05:59Z","closed_at":null,"body":"In the MessageControllers we have this:\r\n\r\n```php\r\n// show current user in list if not a current participant\r\n// $users = User::whereNotIn('id', $thread->participantsUserIds())->get();\r\n\r\n// don't show the current user in list\r\n$userId = Auth::user()->id;\r\n$users = User::whereNotIn('id', $thread->participantsUserIds($userId))->get();\r\n```\r\n\r\nThat will show all the users in the database except those on the participants table. This confuse me a bit. How do you don't show yourself in the participants list, if when you send your id, it's added twice. Something is not completely right but don't know what!! is the example not updated or the code itself?\r\n\r\nThanks!"}}
{"actor":{"display_login":"jrleonr"}}