Skip to content

The conversation's method 'between' is not giving the correct count #316

@FSElias

Description

@FSElias

The following code is not giving the correct result

<?php
        // there are 2 ChatBot models in the database
        $conversation = Chat::createConversation([User::find(1), ChatBot::find(1)])->makeDirect();
        $conversation = Chat::createConversation([User::find(1), ChatBot::find(2)])->makeDirect();
        $conversations = Chat::conversations()->between(User::find(1), ChatBot::find(1));
        dd($conversations->count());

Please why I am getting 2 instead of 1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions