nahid / talk

Talk is a real-time users messaging and chatting system for Laravel.
MIT License
1.61k stars 326 forks source link

user one id not match with auth id #130

Open nad33mahm3d opened 6 years ago

nad33mahm3d commented 6 years ago

Issue in talk/src/Conversations/ConversationRepository.php

Line 107 $conversationWith = ($thread->userone->id == $user) ? $thread->usertwo : $thread->userone;

nad33mahm3d commented 6 years ago

$thread->userone->id need to be $thread->user_one

nahid commented 5 years ago

userone is a relation with user and user_one is treads column name