src/Api/User.php
public function privateMessageThread() : ?MessageThread
    {
        $threads = $this->messageThreads();

        if (count($threads) === 0) return null;
        
        foreach ($threads as $thread) {
            if ($thread->memberCount() === 2) {
                return $thread;
            }
        }

        return null;
    }
public function privateMessageThread() : ?MessageThread
    {
        $threads = $this->messageThreads();

        if (count($threads) === 0) return null;
        
        foreach ($threads as $thread) {
            if ($thread->memberCount() === 2) {
                return $thread;
            }
        }

        return null;
    }
public function privateMessageThread ( ) : ? MessageThread { $ threads = $ this -> messageThreads ( ) ; if ( count ( $ threads ) === 0 ) return null ; foreach ( $ threads as $ thread ) { if ( $ thread -> memberCount ( ) === 2 ) { return $ thread ; } } return null ; }
Get MessageThread with just the logged in account and the current User.

@return MessageThread|null
Get MessageThread with just the logged in account and the current User .