public function getReceiverInfo($conversationId)
    {
        $conversation = $this->conversation->find($conversationId);
        $receiver = '';
        if ($conversation->user_one == $this->authUserId) {
            $receiver = $conversation->user_two;
        } else {
            $receiver = $conversation->user_one;
        }

        $userModel = $this->config('talk.user.model');
        $user = new $userModel();

        return $user->find($receiver);
    }
public function getReceiverInfo($conversationId)
    {
        $conversation = $this->conversation->find($conversationId);
        $receiver = '';
        if ($conversation->user_one == $this->authUserId) {
            $receiver = $conversation->user_two;
        } else {
            $receiver = $conversation->user_one;
        }

        $userModel = $this->config('talk.user.model');
        $user = new $userModel();

        return $user->find($receiver);
    }
public function getReceiverInfo ( $ conversationId ) { $ conversation = $ this -> conversation -> find ( $ conversationId ) ; $ receiver = '' ; if ( $ conversation -> user_one == $ this -> authUserId ) { $ receiver = $ conversation -> user_two ; } else { $ receiver = $ conversation -> user_one ; } $ userModel = $ this -> config ( 'talk.user.model' ) ; $ user = new $ userModel ( ) ; return $ user -> find ( $ receiver ) ; }
get receiver information for this conversation.

@param int $conversationId

@return UserModel

@deprecated since version 2.0.0 Remove it from version 2.0.2
get receiver information for this conversation .