Skip to content

Commit

Permalink
fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wqqas1 committed Oct 26, 2018
1 parent a524be3 commit 93f1165
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Repositories/Conversation/ConversationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ public function getConversationMessageById($conversationId, $userID, $channel)

return collect($collection);
}
public function getConversationMessagesOnly($conversationId)
{
$conversation = $this->query()->with(['messages', 'messages.sender', 'messages.files', 'firstUser', 'secondUser', 'files'])->find($conversationId);

return collect($conversation->messages);
}
/**
* @param $conversationId
* @param array $data
Expand Down Expand Up @@ -188,6 +193,7 @@ public function acceptMessageRequest($userId, $conversationId)
*
* @return bool
*/

public function checkUserExist($userId, $conversationId)
{
$thread = $this->find($conversationId);
Expand Down

0 comments on commit 93f1165

Please sign in to comment.