public static function get_conversation_between_users(array $userids) {
        global $DB;

        $conversations = self::get_individual_conversations_between_users([$userids]);
        $conversation = $conversations[0];

        if ($conversation) {
            return $conversation->id;
        }

        return false;
    }
public static function get_conversation_between_users(array $userids) {
        global $DB;

        $conversations = self::get_individual_conversations_between_users([$userids]);
        $conversation = $conversations[0];

        if ($conversation) {
            return $conversation->id;
        }

        return false;
    }
public static function get_conversation_between_users ( array $ userids ) { global $ DB ; $ conversations = self :: get_individual_conversations_between_users ( [ $ userids ] ) ; $ conversation = $ conversations [ 0 ] ; if ( $ conversation ) { return $ conversation -> id ; } return false ; }
Returns the conversation between two users.

@param array $userids
@return int|bool The id of the conversation, false if not found
Returns the conversation between two users .